wang hou sheng 7 months ago
parent c71f49d2fd
commit a353a1fae0
  1. 7
      app/api/service/identity/PaySuccess.php

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

Loading…
Cancel
Save