|
@@ -227,17 +227,17 @@ class StoreOrderController
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
-// case 'yue':
|
|
|
|
|
-// if (StoreOrder::yuePay($orderId, $request->uid(), $formId))
|
|
|
|
|
-// return app('json')->status('success', '余额支付成功', $info);
|
|
|
|
|
-// else {
|
|
|
|
|
-// $errorinfo = StoreOrder::getErrorInfo();
|
|
|
|
|
-// if (is_array($errorinfo))
|
|
|
|
|
-// return app('json')->status($errorinfo['status'], $errorinfo['msg'], $info);
|
|
|
|
|
-// else
|
|
|
|
|
-// return app('json')->status('pay_error', $errorinfo);
|
|
|
|
|
-// }
|
|
|
|
|
-// break;
|
|
|
|
|
|
|
+ case 'yue':
|
|
|
|
|
+ if (StoreOrder::yuePay($orderId, $request->uid(), $formId))
|
|
|
|
|
+ return app('json')->status('success', '余额支付成功', $info);
|
|
|
|
|
+ else {
|
|
|
|
|
+ $errorinfo = StoreOrder::getErrorInfo();
|
|
|
|
|
+ if (is_array($errorinfo))
|
|
|
|
|
+ return app('json')->status($errorinfo['status'], $errorinfo['msg'], $info);
|
|
|
|
|
+ else
|
|
|
|
|
+ return app('json')->status('pay_error', $errorinfo);
|
|
|
|
|
+ }
|
|
|
|
|
+ break;
|
|
|
case 'brokerage': //佣金支付就是健康币支付
|
|
case 'brokerage': //佣金支付就是健康币支付
|
|
|
if (StoreOrder::brokeragePay($orderId, $request->uid(), $formId))
|
|
if (StoreOrder::brokeragePay($orderId, $request->uid(), $formId))
|
|
|
return app('json')->status('success', '健康币支付成功', $info);
|
|
return app('json')->status('success', '健康币支付成功', $info);
|