修改注释

This commit is contained in:
邹景立 2021-03-01 12:55:38 +08:00
parent 22214e4ac7
commit f03268edee
4 changed files with 6 additions and 12 deletions

View File

@ -63,10 +63,7 @@ class Login extends Controller
/**
* 用户统一注册入口
* @throws \think\Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function register()
{

View File

@ -20,7 +20,7 @@ class Notify extends Controller
* @param string $param 支付参数
* @return string
* @throws \WeChat\Exceptions\InvalidResponseException
* @throws \think\Exception
* @throws \think\admin\Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
@ -40,7 +40,7 @@ class Notify extends Controller
* @param string $param 支付参数
* @return string
* @throws \WeChat\Exceptions\InvalidResponseException
* @throws \think\Exception
* @throws \think\admin\Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
@ -60,7 +60,7 @@ class Notify extends Controller
* @param string $param 支付参数
* @return string
* @throws \WeChat\Exceptions\InvalidResponseException
* @throws \think\Exception
* @throws \think\admin\Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException

View File

@ -51,7 +51,7 @@ class Wechat extends Controller
* 获取 JSSDK 签名
* @throws \WeChat\Exceptions\InvalidResponseException
* @throws \WeChat\Exceptions\LocalCacheException
* @throws \think\Exception
* @throws \think\admin\Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
@ -65,10 +65,7 @@ class Wechat extends Controller
/**
* 加载网页授权数据
* @return \think\Response
* @throws \think\Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function oauth(): Response
{

View File

@ -60,8 +60,8 @@ class Balance extends Auth
$user = $this->app->db->name('DataUser')->where($map)->find();
if (empty($user)) $this->error('目标用户不存在!');
// 检测余额否有足够
[$total, $used] = UserService::instance()->balance($this->uuid);
if ($data['amount'] > $total - $used) $this->error('可转账余额不足!');
[$total, $count] = UserService::instance()->balance($this->uuid);
if ($data['amount'] > $total - $count) $this->error('可转账余额不足!');
// 写入余额转账记录
if ($this->app->db->name($this->table)->insert($data) !== false) {
UserService::instance()->balance($data['uid']);