wanghousheng 11 months ago
parent cb47195bdf
commit 4c43016b1e
  1. 4
      app/store/controller/User.php

@ -12,8 +12,8 @@ declare (strict_types=1);
namespace app\store\controller;
use think\response\Json;
use app\store\model\User as UserModel;
use think\response\Json;
/**
* 用户管理
@ -60,7 +60,7 @@ class User extends Controller
{
// 用户详情
$model = UserModel::detail($userId);
if ($model->recharge($target, $this->postForm())) {
if ((new UserModel())->recharge($target, $this->postForm())) {
return $this->renderSuccess('操作成功');
}
return $this->renderError($model->getError() ?: '操作失败');

Loading…
Cancel
Save