@ -1428,7 +1428,7 @@ class OrdersController extends CommonController
}
$order = (new Orders())->with(["wechatpayAccount","alipayAccount"])->find($order_id);
Log::info("订单信息:".$order->alipayAccount);
Log::info("阿里云支付账号:".$order->alipayAccount->appid);
$recharge = (new Recharge())->create([
"customer_id" => $order->customer->id,
"money" => request()->money,
@ -66,4 +66,8 @@ class Project extends SoftDeletesModel
{
return $this->hasOne(WechatpayAccount::class, "id", "wechatpay_account_id")->withTrashed();
public function alipayAccount()
return $this->hasOne(AlipayAccount::class, "id", "alipay_account_id")->withTrashed();