weizong song 2 years ago
parent 4cbfe27d7b
commit ab9888c6cb

@ -1416,10 +1416,10 @@ class OrdersController extends CommonController
switch (request()->type) {
case "weixin":
$res = (new WxMicroPay())->pay($recharge);
$recharge->update([
"merchant_id" => env("WEIXINPAY_MCHID")
]);
if ($res === true) {
$recharge->update([
"merchant_id" => env("WEIXINPAY_MCHID")
]);
return response()->json(true);
} else {
return response()->json([

Loading…
Cancel
Save