hrjy 2 tahun lalu
induk
melakukan
fd56a5163d

+ 4 - 0
app/api/controller/order/StoreOrderController.php

@@ -253,6 +253,7 @@ class StoreOrderController
                         'goods_desc'=> '环球优购',
                         'description'=> 'alipay',
                         'device_info'=> ['device_p'=> $_SERVER ["REMOTE_ADDR"]],
+                        'callback_url' => 'http://xqyg.frp.liuniu946.com/index',
                         'notify_url' => 'http://xqyg.frp.liuniu946.com/api/adapay/notify'
                     );
                     $payment->create($payment_params);
@@ -278,6 +279,7 @@ class StoreOrderController
                         'description'=> 'weixin',
                         'device_info'=> ['device_p'=> $_SERVER ["REMOTE_ADDR"]],
                         'expend' => ['open_id' => 'oPVIJ62WxFA5NXYGgiTPdx_uGb3Q'],
+                        'callback_url' => 'http://xqyg.frp.liuniu946.com/index',
                         'notify_url' => 'http://xqyg.frp.liuniu946.com/api/adapay/notify'
                     );
                     $payment->create($payment_params);
@@ -426,6 +428,7 @@ class StoreOrderController
                     'goods_desc'=> '环球优购',
                     'description'=> 'alipay',
                     'device_info'=> ['device_p'=> $_SERVER ["REMOTE_ADDR"]],
+                    'callback_url' => 'http://xqyg.frp.liuniu946.com/index',
                     'notify_url' => 'http://xqyg.frp.liuniu946.com/api/adapay/notify'
                 );
                 $payment->create($payment_params);
@@ -452,6 +455,7 @@ class StoreOrderController
                     'description'=> 'weixin',
                     'device_info'=> ['device_p'=> $_SERVER ["REMOTE_ADDR"]],
                     'expend' => ['open_id' => 'oPVIJ62WxFA5NXYGgiTPdx_uGb3Q'],
+                    'callback_url' => 'http://xqyg.frp.liuniu946.com/index',
                     'notify_url' => 'http://xqyg.frp.liuniu946.com/api/adapay/notify'
                 );
                 $payment->create($payment_params);

+ 1 - 1
app/models/store/StoreOrder.php

@@ -50,7 +50,7 @@ class StoreOrder extends BaseModel
 
     protected $insert = ['add_time'];
 
-    protected static $payType = ['weixin' => '微信支付', 'yue' => '余额支付', 'offline' => '线下支付'];
+    protected static $payType = ['weixin' => '微信支付', 'yue' => '余额支付', 'offline' => '线下支付', 'alipay' => '支付宝支付', 'weixin_s' => '微信小程序支付'];
 
     protected static $deliveryType = ['send' => '商家配送', 'express' => '快递配送'];