Browse Source

老用户app push修改

renjiaojiao 1 year ago
parent
commit
ba92c7ea0d
1 changed files with 6 additions and 0 deletions
  1. 6 0
      rpc/internal/common/appPush.go

+ 6 - 0
rpc/internal/common/appPush.go

@@ -32,6 +32,12 @@ func AppPushMsg(userInfo map[string]interface{}, sth, appPushUrl, title, detail
 					} else {
 						i_apppush = qutil.Int64All((*pushKeyMap)["i_apppush"])
 					}
+				} else {
+					if (*pushKeyMap)["i_apppush"] == nil {
+						i_apppush = 0
+					} else {
+						i_apppush = qutil.Int64All((*pushKeyMap)["i_apppush"])
+					}
 				}
 			default:
 				i_apppush = qutil.Int64All((*pushKeyMap)["i_apppush"])