|
@@ -279,7 +279,6 @@ func InitAddWhiteList() (err error) {
|
|
|
|
|
|
postUrl := utils.COMEIN_URL
|
|
|
|
|
|
-
|
|
|
list, err := models.GetComeinWhiteUserMulti()
|
|
|
if err != nil {
|
|
|
fmt.Println("GetUserMobileFormal Err:", err.Error())
|
|
@@ -593,7 +592,7 @@ func syncWhiteList(list []*models.ComeinWhiteUser, opt int) (err error) {
|
|
|
fmt.Println("reponse error", err)
|
|
|
return
|
|
|
}
|
|
|
- utils.FileLog.Info(fmt.Sprint("comein syncWhiteList Result", ";url:", postUrl, ";\nresponse:", string(body)))
|
|
|
+ utils.FileLog.Info(fmt.Sprint("comein syncWhiteList Result", ";url:", postUrl, ";\nrequest:", request, ";\nresponse:", string(body)))
|
|
|
|
|
|
result := new(yb.ComeinResponse)
|
|
|
err = json.Unmarshal(body, &result)
|
|
@@ -632,7 +631,7 @@ func CheckComeinWhiteList() (err error) {
|
|
|
"appId": utils.COMEIN_WHITELIST_APPID,
|
|
|
"signature": signature,
|
|
|
"timestamp": timestamp,
|
|
|
- "phone": "18602189392",
|
|
|
+ "phone": "18958041673",
|
|
|
}
|
|
|
|
|
|
paramStr := ``
|
|
@@ -703,10 +702,9 @@ func AddWhiteList() (err error) {
|
|
|
postUrl := utils.COMEIN_URL
|
|
|
|
|
|
whiteUser := yb.Whitelist{}
|
|
|
- whiteUser.Phone = "18602189392"
|
|
|
+ whiteUser.Phone = "18958041673"
|
|
|
whiteUser.Areacode = "+86"
|
|
|
- whiteUser.Guid = utils.MD5(strconv.Itoa(45631))
|
|
|
-
|
|
|
+ whiteUser.Guid = utils.MD5(strconv.Itoa(114808))
|
|
|
|
|
|
request := yb.SyncWhitelist{
|
|
|
Opt: 1,
|
|
@@ -783,11 +781,11 @@ func CheckComeinWhiteListByJobId() (err error) {
|
|
|
headers := map[string]string{
|
|
|
"app": "json", //模块名
|
|
|
"mod": "channelopen", //模块名
|
|
|
- "act": "get-result", //处理方法名
|
|
|
+ "act": "get-result", //处理方法名
|
|
|
}
|
|
|
|
|
|
paramsMap := map[string]string{
|
|
|
- "jobId": "52b7fcf4-304b-4061-8139-0ad1a3d1bde6",
|
|
|
+ "jobId": "52b7fcf4-304b-4061-8139-0ad1a3d1bde6",
|
|
|
}
|
|
|
|
|
|
paramStr := ``
|