...
|
...
|
@@ -138,6 +138,7 @@ class Pay extends Api |
|
|
* @ApiParams (name="total_goods_price", type="inter", required=true, description="商品总金额")
|
|
|
* @ApiParams (name="discount_price", type="inter", required=true, description="优惠金额")
|
|
|
* @ApiParams (name="total_expense_price", type="inter", required=true, description="运费总金额")
|
|
|
* @ApiParams (name="total_price", type="inter", required=true, description="运费总金额")
|
|
|
*/
|
|
|
public function purchase(){
|
|
|
if($this->request->isPost()){
|
...
|
...
|
@@ -159,7 +160,7 @@ class Pay extends Api |
|
|
$result = $app->order->unify([
|
|
|
'body' => '佛山市理想中网络科技有限公司',
|
|
|
'out_trade_no' => $pay_order_sn,//支付订单号
|
|
|
'total_fee' => $data['security_price']*100,//单位分
|
|
|
'total_fee' => $data['total_price']*100,//单位分
|
|
|
'notify_url' => $ffg_host.'/api/pay/purchaseNotify', // 支付结果通知网址,如果不设置则会使用配置里的默认地址
|
|
|
'trade_type' => 'JSAPI', // 请对应换成你的支付方式对应的值类型
|
|
|
'openid' => $data['openid'],
|
...
|
...
|
|