Browse Source

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

xupuyuan 9 months ago
parent
commit
fba9f9a5de

+ 1 - 0
app/common/enum/store/StoreOrderEnum.php

@@ -40,6 +40,7 @@ class StoreOrderEnum extends CommonEnum
40
         'B3-VR+Jingdou' => ['code' => 'b3', 'name' => 'VR+京豆'],
40
         'B3-VR+Jingdou' => ['code' => 'b3', 'name' => 'VR+京豆'],
41
         'B4-Cash+Jingdou' => ['code' => 'b4', 'name' => '现金+京豆'],
41
         'B4-Cash+Jingdou' => ['code' => 'b4', 'name' => '现金+京豆'],
42
         'B5-VR' => ['code' => 'b5', 'name' => 'VR'],
42
         'B5-VR' => ['code' => 'b5', 'name' => 'VR'],
43
+        'B6-Cash' => ['code' => 'b6', 'name' => '现金'],
43
         'A1-VR' => ['code' => 'a1', 'name' => 'VR'],
44
         'A1-VR' => ['code' => 'a1', 'name' => 'VR'],
44
         'A2-Cash' => ['code' => 'a2', 'name' => '现金'],
45
         'A2-Cash' => ['code' => 'a2', 'name' => '现金'],
45
         'A3-Cash+VR' => ['code' => 'a3', 'name' => '现金+VR'],
46
         'A3-Cash+VR' => ['code' => 'a3', 'name' => '现金+VR'],

+ 2 - 0
app/common/repositories/store/order/StoreOrderRepository.php

@@ -10878,6 +10878,8 @@ class StoreOrderRepository extends BaseRepository
10878
             // 执行 Vr 增减 操作
10878
             // 执行 Vr 增减 操作
10879
             $userSignVrRepository->execute($userSignVrEntity->getId());
10879
             $userSignVrRepository->execute($userSignVrEntity->getId());
10880
             $paySuccess = true;
10880
             $paySuccess = true;
10881
+        } else if ($fzonePayTypeEntity->getType() == StoreOrderEnum::FZONE_PAY_TYPE['B6-Cash']['code']) {
10882
+
10881
         } else if ($fzonePayTypeEntity->getType() == StoreOrderEnum::FZONE_PAY_TYPE['A1-VR']['code']) {
10883
         } else if ($fzonePayTypeEntity->getType() == StoreOrderEnum::FZONE_PAY_TYPE['A1-VR']['code']) {
10882
             if ($fzonePayTypeEntity->getPrice() > $userEntity->getVr()) {
10884
             if ($fzonePayTypeEntity->getPrice() > $userEntity->getVr()) {
10883
                 throw new ValidateException('支付失败,VR不足!');
10885
                 throw new ValidateException('支付失败,VR不足!');

File diff suppressed because it is too large
+ 0 - 9137
app/common/repositories/store/order/StoreOrderRepositoryCopy.php


File diff suppressed because it is too large
+ 0 - 2298
app/controller/api/store/order/StoreOrderCopy.php


+ 4 - 1
app/controller/api/user/User.php

@@ -955,7 +955,6 @@ class User extends BaseController
955
         $params['create_time'] = time();
955
         $params['create_time'] = time();
956
         $params['uid'] = $member_id;
956
         $params['uid'] = $member_id;
957
         $baidu = new Ocr();
957
         $baidu = new Ocr();
958
-
959
         // 兼容港澳台证件
958
         // 兼容港澳台证件
960
         if ($cardType != 1) {
959
         if ($cardType != 1) {
961
             // 设置exitentrypermit_type
960
             // 设置exitentrypermit_type
@@ -983,6 +982,7 @@ class User extends BaseController
983
             if ($real_user_card != $params['user_card']) {
982
             if ($real_user_card != $params['user_card']) {
984
                 return app('json')->fail('姓名或身份证号输入有误~');
983
                 return app('json')->fail('姓名或身份证号输入有误~');
985
             }
984
             }
985
+
986
             $params['reason'] = '';
986
             $params['reason'] = '';
987
             $params['audit_time'] = 0;
987
             $params['audit_time'] = 0;
988
             $params['update_time'] = 0;
988
             $params['update_time'] = 0;
@@ -1018,6 +1018,7 @@ class User extends BaseController
1018
             $image = file_get_contents($params['card_positive']);
1018
             $image = file_get_contents($params['card_positive']);
1019
             $idCardSide = "front";
1019
             $idCardSide = "front";
1020
             $result = $baidu->idcard($image, $idCardSide);
1020
             $result = $baidu->idcard($image, $idCardSide);
1021
+            Log::info('hkMacauTaiwan:' . json_encode($result));
1021
             $real_user_name = $result['words_result']['姓名']['words'] ?? '';
1022
             $real_user_name = $result['words_result']['姓名']['words'] ?? '';
1022
             $real_user_card = $result['words_result']['公民身份号码']['words'] ?? '';
1023
             $real_user_card = $result['words_result']['公民身份号码']['words'] ?? '';
1023
             if ($real_user_name != $params['user_name']) {
1024
             if ($real_user_name != $params['user_name']) {
@@ -1028,6 +1029,7 @@ class User extends BaseController
1028
             }
1029
             }
1029
             if ($result['image_status'] == "normal" && $result['idcard_number_type'] == 1) {
1030
             if ($result['image_status'] == "normal" && $result['idcard_number_type'] == 1) {
1030
                 $params['status'] = 1;
1031
                 $params['status'] = 1;
1032
+                $params['card_type'] = $cardType;
1031
                 $res = $this->repository->add_cer($params, $member_id);
1033
                 $res = $this->repository->add_cer($params, $member_id);
1032
                 if ($res) {
1034
                 if ($res) {
1033
                     $userRepository = app()->make(UserRepository::class);
1035
                     $userRepository = app()->make(UserRepository::class);
@@ -1050,6 +1052,7 @@ class User extends BaseController
1050
                 return app('json')->fail('认证失败,请重新认证');
1052
                 return app('json')->fail('认证失败,请重新认证');
1051
             }
1053
             }
1052
         }
1054
         }
1055
+
1053
     }
1056
     }
1054
 
1057
 
1055
 
1058