Преглед изворни кода

Merge remote-tracking branch 'origin/dev' into dev

xupuyuan пре 11 месеци
родитељ
комит
1b90b75398
2 измењених фајлова са 7 додато и 5 уклоњено
  1. 4 4
      app/controller/api/store/product/Vip.php
  2. 3 1
      app/controller/api/store/service/Huafei.php

+ 4 - 4
app/controller/api/store/product/Vip.php

@@ -50,7 +50,7 @@ class Vip extends BaseController
50
      * $params  参数
50
      * $params  参数
51
      * $request  应用级参数
51
      * $request  应用级参数
52
      * */
52
      * */
53
-    public function getUrlResult($apiName, $method, $request = [])
53
+    public function getUrlResult($apiName, $method, $request = [], $version = '1.0.0')
54
     {
54
     {
55
         if (empty($apiName)) {
55
         if (empty($apiName)) {
56
             return false;
56
             return false;
@@ -60,7 +60,7 @@ class Vip extends BaseController
60
         $requestParams = [
60
         $requestParams = [
61
             'service' => $apiName,
61
             'service' => $apiName,
62
             'method' => $method,
62
             'method' => $method,
63
-            'version' => "1.0.0",
63
+            'version' => $version,
64
             'format' => 'JSON',
64
             'format' => 'JSON',
65
             'appKey' => "68979f85",
65
             'appKey' => "68979f85",
66
             'timestamp' => time(),
66
             'timestamp' => time(),
@@ -805,10 +805,10 @@ class Vip extends BaseController
805
             'requestId' => microtime(true) . rand(1000, 9999)
805
             'requestId' => microtime(true) . rand(1000, 9999)
806
         ]);
806
         ]);
807
         $orderLists = [];
807
         $orderLists = [];
808
-        $apiName = 'com.vip.adp.api.open.service.UnionOrderService';
808
+        $apiName = 'com.vip.adp.api.open.service.UnionOrderV2Service';
809
         do {
809
         do {
810
             $request = ['queryModel' => $queryModel];
810
             $request = ['queryModel' => $queryModel];
811
-            $result = $this->getUrlResult($apiName, "orderList", $request);
811
+            $result = $this->getUrlResult($apiName, "orderList", $request, '2.0.0');
812
             log::info("vip===返回订单数据");
812
             log::info("vip===返回订单数据");
813
             log::info($result);
813
             log::info($result);
814
             $lists = $result['result']['orderInfoList'] ?? [];
814
             $lists = $result['result']['orderInfoList'] ?? [];

+ 3 - 1
app/controller/api/store/service/Huafei.php

@@ -185,7 +185,9 @@ class Huafei extends BaseController
185
 			}else{
185
 			}else{
186
 				return app('json')->fail('创建话费充值预支付订单失败');
186
 				return app('json')->fail('创建话费充值预支付订单失败');
187
 			}
187
 			}
188
-		}else{
188
+        } elseif ($verify['code'] == '1004') {
189
+            return app('json')->fail('各位用户您好:因中国移动充值端口升级,目前暂时无法使用,恢复充值需要等待官方通知,感谢理解');
190
+        } else {
189
 			return app('json')->fail($verify['msg'].'MSG');
191
 			return app('json')->fail($verify['msg'].'MSG');
190
 		}
192
 		}
191
     }
193
     }