瀏覽代碼

Merge branch 'dev/v1.2.7_dx' of moapp/MessageCenter into feature/v1.2.7

duxin 1 年之前
父節點
當前提交
17b2d916ec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rpc/internal/common/appPush.go

+ 1 - 1
rpc/internal/common/appPush.go

@@ -29,7 +29,7 @@ func AppPushMsg(userInfo map[string]interface{}, stm, appPushUrl, title, detail
 				phoneType = qutil.ObjToString(userInfo["s_appponetype"])
 				name = qutil.ObjToString(userInfo["s_name"])
 				appVersion = qutil.ObjToString(userInfo["s_appversion"])
-				if strings.HasPrefix(appPushUrl, "/") {
+				if strings.Contains(phoneType, "iPhone") && strings.HasPrefix(appPushUrl, "/") {
 					appPushUrl = appPushUrl[1:]
 				}
 				dt := map[string]interface{}{