diff --git a/app/api/service/identity/PaySuccess.php b/app/api/service/identity/PaySuccess.php index 8efc486c..1dcd1d36 100644 --- a/app/api/service/identity/PaySuccess.php +++ b/app/api/service/identity/PaySuccess.php @@ -363,12 +363,12 @@ class PaySuccess extends BaseService private function activate(): void { Db::table('yoshop_wx_server')->insertGetId(['content' => '修改会员信息开始', 'created_at' => date('Y-m-d H:i:s')]); - $orderInfo = $this->orderInfo; - $userInfo = $this->userInfo; - Db::table('yoshop_wx_server')->insertGetId(['content' => '会员信息', 'created_at' => date('Y-m-d H:i:s')]); - Db::table('yoshop_wx_server')->insertGetId(['content' => json_encode($userInfo), 'created_at' => date('Y-m-d H:i:s')]); + $orderInfo = $this->getOrderInfo(); Db::table('yoshop_wx_server')->insertGetId(['content' => '订单信息', 'created_at' => date('Y-m-d H:i:s')]); Db::table('yoshop_wx_server')->insertGetId(['content' => json_encode($orderInfo), 'created_at' => date('Y-m-d H:i:s')]); + $userInfo = $this->getUserInfo(); + Db::table('yoshop_wx_server')->insertGetId(['content' => '会员信息', 'created_at' => date('Y-m-d H:i:s')]); + Db::table('yoshop_wx_server')->insertGetId(['content' => json_encode($userInfo), 'created_at' => date('Y-m-d H:i:s')]); //判断当前用户角色 $orderType = $orderInfo['order_type']; $userType = $userInfo['user_type'];