|
@@ -363,15 +363,15 @@ func InitAddWhiteList() (err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- utils.FileLog.Info(fmt.Sprint("comein addWhitelist Result", ";url:", postUrl, ";\nresponse:", string(body)))
|
|
|
+ utils.FileLog.Info(fmt.Sprint("comein addWhitelist Result", ";url:", postUrl, ";\nrequest:", request, ";\nresponse:", string(body)))
|
|
|
err = json.Unmarshal(body, &result)
|
|
|
if err != nil {
|
|
|
- utils.FileLog.Info("comein addWhitelist Err:", err.Error(), ";url:", postUrl, ";response:", string(body))
|
|
|
+ utils.FileLog.Info(fmt.Sprint("comein addWhitelist Result", ";url:", postUrl, ";\nrequest:", request, ";\nresponse:", string(body)))
|
|
|
err = errors.New("Unmarshal Err:" + err.Error())
|
|
|
return
|
|
|
}
|
|
|
if result.ErrorCode != "0" {
|
|
|
- utils.FileLog.Info("comein addWhitelist Err:", err.Error(), ";url:", postUrl, ";response:", string(body))
|
|
|
+ utils.FileLog.Info(fmt.Sprint("comein addWhitelist Result", ";url:", postUrl, ";\nrequest:", request, ";\nresponse:", string(body)))
|
|
|
err = errors.New(result.ErrorDesc)
|
|
|
return
|
|
|
}
|
|
@@ -633,7 +633,7 @@ func CheckComeinWhiteList() (err error) {
|
|
|
"appId": utils.COMEIN_WHITELIST_APPID,
|
|
|
"signature": signature,
|
|
|
"timestamp": timestamp,
|
|
|
- "phone": "18958041673",
|
|
|
+ "phone": "15906624664",
|
|
|
}
|
|
|
|
|
|
paramStr := ``
|
|
@@ -704,9 +704,9 @@ func AddWhiteList() (err error) {
|
|
|
postUrl := utils.COMEIN_URL
|
|
|
|
|
|
whiteUser := yb.Whitelist{}
|
|
|
- whiteUser.Phone = "18958041673"
|
|
|
+ whiteUser.Phone = "15906624664"
|
|
|
whiteUser.Areacode = "+86"
|
|
|
- whiteUser.Guid = utils.MD5(strconv.Itoa(114808))
|
|
|
+ whiteUser.Guid = utils.MD5(strconv.Itoa(0))
|
|
|
|
|
|
request := yb.SyncWhitelist{
|
|
|
Opt: 1,
|
|
@@ -787,7 +787,7 @@ func CheckComeinWhiteListByJobId() (err error) {
|
|
|
}
|
|
|
|
|
|
paramsMap := map[string]string{
|
|
|
- "jobId": "52b7fcf4-304b-4061-8139-0ad1a3d1bde6",
|
|
|
+ "jobId": "cb121a9a-47a3-49ce-a1fd-445fede19e0f",
|
|
|
}
|
|
|
|
|
|
paramStr := ``
|