|
@@ -8,6 +8,7 @@ import (
|
|
|
"k8s.io/apimachinery/pkg/util/json"
|
|
|
"log"
|
|
|
"net/rpc"
|
|
|
+ "strings"
|
|
|
)
|
|
|
|
|
|
func AppPushMsg(userInfo map[string]interface{}, stm, appPushUrl, title, detail string) error {
|
|
@@ -28,7 +29,9 @@ 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, "/") {
|
|
|
+ appPushUrl = appPushUrl[1:]
|
|
|
+ }
|
|
|
dt := map[string]interface{}{
|
|
|
"receiveUserId": userId,
|
|
|
"receiveName": name,
|