Prechádzať zdrojové kódy

海外商品支付修改

kevin_zhangl 2 rokov pred
rodič
commit
146066d6c8

+ 1 - 1
common/models/forms/ApproachOrderForm.php

@@ -304,7 +304,7 @@ class ApproachOrderForm extends Model
             if ($v) {
                 $goods = ShopGoods::findOneAsArray('ID=:ID AND STATUS=1',[':ID'=> $ids[$k]]);
                 if (!$goods) {
-                    throw new Exception('商品已下架');
+//                    throw new Exception('商品已下架');
                 }
                 if ($goods['STORE_NUMS'] > 0) {
                     $discount = $goods['SELL_DISCOUNT'];

+ 1 - 1
frontendApi/modules/v1/controllers/ShopController.php

@@ -427,7 +427,7 @@ class ShopController extends BaseController {
 //        $amount = number_format(1, 2, '.', ''); // TODO: 测试
         $paymentParams['Amount'] = str_replace('.', '', $amount);
         // (Optional) (int)
-        $paymentParams['PaymentId'] = '182';   // 2=信用卡 182=银联
+        $paymentParams['PaymentId'] = '2';   // 2=信用卡 182=银联
         // Product description. (length 100)
         $paymentParams['ProdDesc'] = 'Pay for sales';
         // Customer name. (length 100)