|
|
|
@ -365,18 +365,23 @@ class PaySuccess extends BaseService |
|
|
|
|
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')]); |
|
|
|
|
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')]); |
|
|
|
|
//判断当前用户角色 |
|
|
|
|
$orderType = $orderInfo['order_type']; |
|
|
|
|
$userType = $userInfo['user_type']; |
|
|
|
|
if ($userType == UserTypeEnum::STORE) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
Db::table('yoshop_wx_server')->insertGetId(['content' => '修改会员信息开始222222', 'created_at' => date('Y-m-d H:i:s')]); |
|
|
|
|
$userModel = new UserModel(); |
|
|
|
|
$up = []; |
|
|
|
|
$time = date('Y-m-d'); |
|
|
|
|
//已经是会员或者未开通会员 |
|
|
|
|
if ($orderType == IdentityEnum::MEMBER && $userType != UserTypeEnum::DEALER) { |
|
|
|
|
Db::table('yoshop_wx_server')->insertGetId(['content' => '不是会员', 'created_at' => date('Y-m-d H:i:s')]); |
|
|
|
|
|
|
|
|
|
$up['user_type'] = UserTypeEnum::MEMBER; |
|
|
|
|
//已经是会员 |
|
|
|
|
if ($userType == UserTypeEnum::MEMBER) { |
|
|
|
|