Browse Source

feat:xiugai

wangchuanjin 2 months ago
parent
commit
c95da2469f
3 changed files with 4 additions and 2 deletions
  1. 1 1
      src/config.json
  2. 1 1
      src/main_test.go
  3. 2 0
      src/service/weiwangtonglian.go

+ 1 - 1
src/config.json

@@ -10,7 +10,7 @@
     "productId": 1012888,
     "fixEncryptKey": "SMmsEncryptKey",
     "idToTpl": {
-      "01": 1342201,
+      "01": 134220,
       "02": 139702,
       "03": 149347,
       "04": 150559

+ 1 - 1
src/main_test.go

@@ -18,7 +18,7 @@ func Test_Main(t *testing.T) {
 	defer client.Close()
 	b, _ := json.Marshal(map[string]interface{}{
 		"id":     "01",
-		"phones": "1503787076",
+		"phones": "15037870765",
 		"params": []string{date.NowFormat("150405")},
 		"ip":     "123.3.3.2",
 	})

+ 2 - 0
src/service/weiwangtonglian.go

@@ -97,6 +97,8 @@ func (w *weiwangtonglian) Execute(reqData *ReqData) bool {
 				res.Body.Close()
 			}
 		}()
+	}
+	if result.Result == "2003" || result.Result == "-99" {
 		return false
 	}
 	return true