|
|
@ -27,6 +27,9 @@ class SharePayController extends Controller |
|
|
$openid = User::query()->where('id', $this->user_id)->value('openid'); //此处要用where,value()用find有BUG
|
|
|
$openid = User::query()->where('id', $this->user_id)->value('openid'); //此处要用where,value()用find有BUG
|
|
|
|
|
|
|
|
|
$order = Order::query()->whereIn('status', [Status::UNPAID, Status::PAY_EARNEST])->find($order_id); |
|
|
$order = Order::query()->whereIn('status', [Status::UNPAID, Status::PAY_EARNEST])->find($order_id); |
|
|
|
|
|
if (!$order) { |
|
|
|
|
|
return $this->error('订单不存在或已支付'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
$config = config('wechat.payment.default'); |
|
|
$config = config('wechat.payment.default'); |
|
|
$config = array_merge($config, [ |
|
|
$config = array_merge($config, [ |
|
|
|