|
|
@ -19,6 +19,7 @@ use app\api\model\User as UserModel; |
|
|
|
use app\api\model\user\BalanceLog; |
|
|
|
use app\api\model\user\BalanceLog; |
|
|
|
use app\api\model\user\GoodSource as GoodsSourceModel; |
|
|
|
use app\api\model\user\GoodSource as GoodsSourceModel; |
|
|
|
use app\api\model\user\InvoiceOrder; |
|
|
|
use app\api\model\user\InvoiceOrder; |
|
|
|
|
|
|
|
use app\api\model\RetailOrder as RetailOrderModel; |
|
|
|
use app\api\model\user\UserCoupon; |
|
|
|
use app\api\model\user\UserCoupon; |
|
|
|
use app\api\model\user\UserInvoice; |
|
|
|
use app\api\model\user\UserInvoice; |
|
|
|
use app\api\model\UserCoupon as UserCouponModel; |
|
|
|
use app\api\model\UserCoupon as UserCouponModel; |
|
|
@ -51,6 +52,7 @@ class User extends Controller |
|
|
|
{ |
|
|
|
{ |
|
|
|
$user_id = UserService::getCurrentLoginUserId(); |
|
|
|
$user_id = UserService::getCurrentLoginUserId(); |
|
|
|
UserModel::where('user_id', $user_id)->update(['is_delete' => 1, 'update_time' => time()]); |
|
|
|
UserModel::where('user_id', $user_id)->update(['is_delete' => 1, 'update_time' => time()]); |
|
|
|
|
|
|
|
return $this->renderSuccess('注销成功'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -80,6 +82,12 @@ class User extends Controller |
|
|
|
$userInfo['withdrawal_money'] = !empty($dealer_info->money) ? $dealer_info->money : 0; |
|
|
|
$userInfo['withdrawal_money'] = !empty($dealer_info->money) ? $dealer_info->money : 0; |
|
|
|
$userInfo['freeze_money'] = !empty($dealer_info->freeze_money) ? $dealer_info->freeze_money : 0; |
|
|
|
$userInfo['freeze_money'] = !empty($dealer_info->freeze_money) ? $dealer_info->freeze_money : 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$retailOrderList = RetailOrderModel::getRetailOrder($userInfo['user_id']); |
|
|
|
|
|
|
|
if(!empty($retailOrderList)){ |
|
|
|
|
|
|
|
$userInfo['retail'] = 1; |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
$userInfo['retail'] = 0; |
|
|
|
|
|
|
|
} |
|
|
|
return $this->renderSuccess(compact('userInfo')); |
|
|
|
return $this->renderSuccess(compact('userInfo')); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|