|
|
|
@ -34,6 +34,15 @@ use think\response\Json; |
|
|
|
|
*/ |
|
|
|
|
class User extends Controller |
|
|
|
|
{ |
|
|
|
|
/** |
|
|
|
|
* 注销账号 |
|
|
|
|
* [delete description] |
|
|
|
|
* @return [type] [description] |
|
|
|
|
*/ |
|
|
|
|
public function delete(){ |
|
|
|
|
$user_id = UserService::getCurrentLoginUserId(); |
|
|
|
|
UserModel::where('user_id', $user_id)->update(['is_delete' => 1,'update_time' => time()]); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 当前用户详情 |
|
|
|
|
* @return Json |
|
|
|
@ -212,6 +221,17 @@ class User extends Controller |
|
|
|
|
return $this->renderSuccess('修改成功'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//发票抬头删除 |
|
|
|
|
public function delInvoicing(): Json |
|
|
|
|
{ |
|
|
|
|
$service = new UserInvoice(); |
|
|
|
|
if(!$service->del($this->request->param())) { |
|
|
|
|
return $this->renderSuccess($service->getError() ?: '操作失败'); |
|
|
|
|
} |
|
|
|
|
return $this->renderSuccess('删除成功·'); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//开票记录 |
|
|
|
|
public function invoicingLog(): Json |
|
|
|
|
{ |
|
|
|
|