mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改注释
This commit is contained in:
parent
22214e4ac7
commit
f03268edee
@ -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\DbException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
|
||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@ class Notify extends Controller
|
|||||||
* @param string $param 支付参数
|
* @param string $param 支付参数
|
||||||
* @return string
|
* @return string
|
||||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
* @throws \think\Exception
|
* @throws \think\admin\Exception
|
||||||
* @throws \think\db\exception\DataNotFoundException
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
* @throws \think\db\exception\DbException
|
* @throws \think\db\exception\DbException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
@ -40,7 +40,7 @@ class Notify extends Controller
|
|||||||
* @param string $param 支付参数
|
* @param string $param 支付参数
|
||||||
* @return string
|
* @return string
|
||||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
* @throws \think\Exception
|
* @throws \think\admin\Exception
|
||||||
* @throws \think\db\exception\DataNotFoundException
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
* @throws \think\db\exception\DbException
|
* @throws \think\db\exception\DbException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
@ -60,7 +60,7 @@ class Notify extends Controller
|
|||||||
* @param string $param 支付参数
|
* @param string $param 支付参数
|
||||||
* @return string
|
* @return string
|
||||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
* @throws \think\Exception
|
* @throws \think\admin\Exception
|
||||||
* @throws \think\db\exception\DataNotFoundException
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
* @throws \think\db\exception\DbException
|
* @throws \think\db\exception\DbException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
|
@ -51,7 +51,7 @@ class Wechat extends Controller
|
|||||||
* 获取 JSSDK 签名
|
* 获取 JSSDK 签名
|
||||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
* @throws \WeChat\Exceptions\LocalCacheException
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
* @throws \think\Exception
|
* @throws \think\admin\Exception
|
||||||
* @throws \think\db\exception\DataNotFoundException
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
* @throws \think\db\exception\DbException
|
* @throws \think\db\exception\DbException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
@ -65,10 +65,7 @@ class Wechat extends Controller
|
|||||||
/**
|
/**
|
||||||
* 加载网页授权数据
|
* 加载网页授权数据
|
||||||
* @return \think\Response
|
* @return \think\Response
|
||||||
* @throws \think\Exception
|
|
||||||
* @throws \think\db\exception\DataNotFoundException
|
|
||||||
* @throws \think\db\exception\DbException
|
* @throws \think\db\exception\DbException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
|
||||||
*/
|
*/
|
||||||
public function oauth(): Response
|
public function oauth(): Response
|
||||||
{
|
{
|
||||||
|
@ -60,8 +60,8 @@ class Balance extends Auth
|
|||||||
$user = $this->app->db->name('DataUser')->where($map)->find();
|
$user = $this->app->db->name('DataUser')->where($map)->find();
|
||||||
if (empty($user)) $this->error('目标用户不存在!');
|
if (empty($user)) $this->error('目标用户不存在!');
|
||||||
// 检测余额否有足够
|
// 检测余额否有足够
|
||||||
[$total, $used] = UserService::instance()->balance($this->uuid);
|
[$total, $count] = UserService::instance()->balance($this->uuid);
|
||||||
if ($data['amount'] > $total - $used) $this->error('可转账余额不足!');
|
if ($data['amount'] > $total - $count) $this->error('可转账余额不足!');
|
||||||
// 写入余额转账记录
|
// 写入余额转账记录
|
||||||
if ($this->app->db->name($this->table)->insert($data) !== false) {
|
if ($this->app->db->name($this->table)->insert($data) !== false) {
|
||||||
UserService::instance()->balance($data['uid']);
|
UserService::instance()->balance($data['uid']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user