ソースを参照

优化用户下单方法

sunxiaobiao 9 ヶ月 前
コミット
eb68a39bef

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

@@ -40,6 +40,7 @@ class StoreOrderEnum extends CommonEnum
40 40
         'B3-VR+Jingdou' => ['code' => 'b3', 'name' => 'VR+京豆'],
41 41
         'B4-Cash+Jingdou' => ['code' => 'b4', 'name' => '现金+京豆'],
42 42
         'B5-VR' => ['code' => 'b5', 'name' => 'VR'],
43
+        'B6-Cash' => ['code' => 'b6', 'name' => '现金'],
43 44
         'A1-VR' => ['code' => 'a1', 'name' => 'VR'],
44 45
         'A2-Cash' => ['code' => 'a2', 'name' => '现金'],
45 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 10878
             // 执行 Vr 增减 操作
10879 10879
             $userSignVrRepository->execute($userSignVrEntity->getId());
10880 10880
             $paySuccess = true;
10881
+        } else if ($fzonePayTypeEntity->getType() == StoreOrderEnum::FZONE_PAY_TYPE['B6-Cash']['code']) {
10882
+
10881 10883
         } else if ($fzonePayTypeEntity->getType() == StoreOrderEnum::FZONE_PAY_TYPE['A1-VR']['code']) {
10882 10884
             if ($fzonePayTypeEntity->getPrice() > $userEntity->getVr()) {
10883 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