Quellcode durchsuchen

Merge branch 'dev' into dev-sxb

sunxbiao vor 11 Monaten
Ursprung
Commit
76777e06ff

+ 6 - 0
app/common/repositories/user/UserRepository.php

@@ -4495,6 +4495,12 @@ class UserRepository extends BaseRepository
4495 4495
      */
4496 4496
     public function createUserOperatingRecord($uid, $model, $type, $mark)
4497 4497
     {
4498
+        $exists = Db::name('user_operating_record')
4499
+            ->where('uid', $uid)
4500
+            ->value('id');
4501
+        if ($exists) {
4502
+            return;
4503
+        }
4498 4504
         Db::name('user_operating_record')->insert([
4499 4505
             'uid' => $uid,
4500 4506
             'operation_model' => $model,

+ 0 - 6
app/controller/api/Auth.php

@@ -1421,9 +1421,6 @@ class Auth extends BaseController
1421 1421
             if ($num > 9) {
1422 1422
                 if (!$data['code'])
1423 1423
                     return app('json')->make(402, '操作过于频繁,请稍后重试~');
1424
-                if (!$this->smslogin($data['phone'], $data['code'])) {
1425
-                    return app('json')->fail('登录验证码输入有误');
1426
-                }
1427 1424
             }
1428 1425
         }
1429 1426
 
@@ -1439,9 +1436,6 @@ class Auth extends BaseController
1439 1436
             if ($num > 9) {
1440 1437
                 if (!$data['code'])
1441 1438
                     return app('json')->make(402, '操作过于频繁,请稍后重试~');
1442
-                if (!$this->registersmscode($data['phone'], $data['code'])) {
1443
-                    return app('json')->fail('注册验证码输入有误');
1444
-                }
1445 1439
             }
1446 1440
         }
1447 1441
         $sms_key = 'api.auth.sms.' . $data['phone'];

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

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