This commit is contained in:
root
2020-01-03 22:42:27 +08:00
parent 25fbdf0013
commit c61f64d623
3 changed files with 13 additions and 5 deletions

View File

@ -176,6 +176,10 @@ class OrderController extends Controller
if (!$order) {
abort(500, '订单不存在或已支付');
}
$order->method = $method;
if (!$order->save()) {
abort(500, '支付失败,请稍后再试');
}
switch ($method) {
// return type => 0: QRCode / 1: URL
case 0: