|
|
@@ -135,6 +135,7 @@ class DiagnosisOrderController
|
|
|
$order = cache($data['cache']);
|
|
|
|
|
|
if (!$order) return app('json')->fail('订单已过期');
|
|
|
+ if (!$data['pay_type']) return app('json')->fail('支付方式不正确');
|
|
|
$orderInfo = DiagnosisOrder::create_order($order, $data['pay_type'],$uid);
|
|
|
if ($order['pay_price'] == 0){
|
|
|
$res = DiagnosisOrder::yuPay($orderInfo['order_id']);
|