Browse Source

修改文件注释

邹景立 3 years ago
parent
commit
35cf9b7747
2 changed files with 37 additions and 48 deletions
  1. 4 8
      app/data/command/UserAgent.php
  2. 33 40
      app/data/command/UserTransfer.php

+ 4 - 8
app/data/command/UserAgent.php

@@ -5,13 +5,9 @@ namespace app\data\command;
 use app\data\model\DataUser;
 use app\data\service\UserUpgradeService;
 use think\admin\Command;
-use think\admin\Exception;
 use think\console\Input;
 use think\console\input\Argument;
 use think\console\Output;
-use think\db\exception\DataNotFoundException;
-use think\db\exception\DbException;
-use think\db\exception\ModelNotFoundException;
 
 /**
  * 更新用户代理关系
@@ -32,10 +28,10 @@ class UserAgent extends Command
      * @param Input $input
      * @param Output $output
      * @return void
-     * @throws Exception
-     * @throws DataNotFoundException
-     * @throws DbException
-     * @throws ModelNotFoundException
+     * @throws \think\admin\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\DbException
+     * @throws \think\db\exception\ModelNotFoundException
      */
     protected function execute(Input $input, Output $output)
     {

+ 33 - 40
app/data/command/UserTransfer.php

@@ -9,12 +9,6 @@ use think\admin\Exception;
 use think\admin\storage\LocalStorage;
 use think\console\Input;
 use think\console\Output;
-use think\db\exception\DataNotFoundException;
-use think\db\exception\DbException;
-use think\db\exception\ModelNotFoundException;
-use WeChat\Exceptions\InvalidDecryptException;
-use WeChat\Exceptions\InvalidResponseException;
-use WeChat\Exceptions\LocalCacheException;
 use WePay\Transfers;
 use WePay\TransfersBank;
 
@@ -36,8 +30,7 @@ class UserTransfer extends Command
      * @param Input $input
      * @param Output $output
      * @return void
-     * @throws Exception
-     * @throws DbException
+     * @throws \think\admin\Exception
      */
     protected function execute(Input $input, Output $output)
     {
@@ -89,13 +82,13 @@ class UserTransfer extends Command
      * 尝试提现转账到银行卡
      * @param array $item
      * @return array [config, result]
-     * @throws Exception
-     * @throws InvalidDecryptException
-     * @throws InvalidResponseException
-     * @throws LocalCacheException
-     * @throws DataNotFoundException
-     * @throws DbException
-     * @throws ModelNotFoundException
+     * @throws \WeChat\Exceptions\InvalidDecryptException
+     * @throws \WeChat\Exceptions\InvalidResponseException
+     * @throws \WeChat\Exceptions\LocalCacheException
+     * @throws \think\admin\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\DbException
+     * @throws \think\db\exception\ModelNotFoundException
      */
     private function createTransferBank(array $item): array
     {
@@ -114,10 +107,10 @@ class UserTransfer extends Command
      * 获取微信提现参数
      * @param int $uuid
      * @return array
-     * @throws Exception
-     * @throws DataNotFoundException
-     * @throws DbException
-     * @throws ModelNotFoundException
+     * @throws \think\admin\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\DbException
+     * @throws \think\db\exception\ModelNotFoundException
      */
     private function getConfig(int $uuid): array
     {
@@ -150,9 +143,9 @@ class UserTransfer extends Command
      * @param int $uuid
      * @param string $type
      * @return mixed|null
-     * @throws DataNotFoundException
-     * @throws DbException
-     * @throws ModelNotFoundException
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\DbException
+     * @throws \think\db\exception\ModelNotFoundException
      */
     private function getWechatInfo(int $uuid, string $type): ?array
     {
@@ -181,12 +174,12 @@ class UserTransfer extends Command
      * 尝试提现转账到微信钱包
      * @param array $item
      * @return array [config, result]
-     * @throws Exception
-     * @throws InvalidResponseException
-     * @throws LocalCacheException
-     * @throws DataNotFoundException
-     * @throws DbException
-     * @throws ModelNotFoundException
+     * @throws \WeChat\Exceptions\InvalidResponseException
+     * @throws \WeChat\Exceptions\LocalCacheException
+     * @throws \think\admin\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\DbException
+     * @throws \think\db\exception\ModelNotFoundException
      */
     private function createTransferWallet(array $item): array
     {
@@ -204,12 +197,12 @@ class UserTransfer extends Command
     /**
      * 查询更新提现打款状态
      * @param array $item
-     * @throws Exception
-     * @throws InvalidResponseException
-     * @throws LocalCacheException
-     * @throws DataNotFoundException
-     * @throws DbException
-     * @throws ModelNotFoundException
+     * @throws \WeChat\Exceptions\InvalidResponseException
+     * @throws \WeChat\Exceptions\LocalCacheException
+     * @throws \think\admin\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\DbException
+     * @throws \think\db\exception\ModelNotFoundException
      */
     private function queryTransferBank(array $item)
     {
@@ -242,12 +235,12 @@ class UserTransfer extends Command
     /**
      * 查询更新提现打款状态
      * @param array $item
-     * @throws Exception
-     * @throws InvalidResponseException
-     * @throws LocalCacheException
-     * @throws DataNotFoundException
-     * @throws DbException
-     * @throws ModelNotFoundException
+     * @throws \WeChat\Exceptions\InvalidResponseException
+     * @throws \WeChat\Exceptions\LocalCacheException
+     * @throws \think\admin\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\DbException
+     * @throws \think\db\exception\ModelNotFoundException
      */
     private function queryTransferWallet(array $item)
     {