fix: 批量修改文字描述

This commit is contained in:
邹景立 2024-08-06 00:18:46 +08:00
parent 9aab0a55b1
commit 747a7dccaf
11 changed files with 27 additions and 27 deletions

View File

@ -30,14 +30,14 @@ use WePay\TransfersBank;
use WePayV3\Transfers as TransfersV3; use WePayV3\Transfers as TransfersV3;
/** /**
* 用户提现处理 * 代理提现处理
* @class Trans * @class Trans
* @package app\data\command * @package app\data\command
*/ */
class Trans extends Command class Trans extends Command
{ {
/** /**
* 用户提现配置 * 代理提现配置
* @return void * @return void
*/ */
protected function configure() protected function configure()

View File

@ -24,14 +24,14 @@ use plugin\wemall\model\PluginWemallUserRebate;
use plugin\wemall\service\UserRebate; use plugin\wemall\service\UserRebate;
/** /**
* 用户返佣管理 * 代理返佣管理
* @class Rebate * @class Rebate
* @package plugin\wemall\controller\api\auth * @package plugin\wemall\controller\api\auth
*/ */
class Rebate extends Auth class Rebate extends Auth
{ {
/** /**
* 获取用户返佣记录 * 获取代理返佣记录
* @return void * @return void
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException

View File

@ -25,7 +25,7 @@ use plugin\wemall\service\UserTransfer;
use think\admin\extend\CodeExtend; use think\admin\extend\CodeExtend;
/** /**
* 用户提现接口 * 代理提现接口
* @class Transfer * @class Transfer
* @package plugin\wemall\controller\api\auth * @package plugin\wemall\controller\api\auth
*/ */
@ -111,7 +111,7 @@ class Transfer extends Auth
if ($transfers[$data['type']]['maxAmount'] < $data['amount']) { if ($transfers[$data['type']]['maxAmount'] < $data['amount']) {
$this->error("不能大于{$transfers[$data['type']]['maxAmount']}"); $this->error("不能大于{$transfers[$data['type']]['maxAmount']}");
} }
// 写入用户提现数据 // 写入代理提现数据
if (PluginWemallUserTransfer::mk()->save($data)) { if (PluginWemallUserTransfer::mk()->save($data)) {
UserRebate::recount($this->unid); UserRebate::recount($this->unid);
$this->success('提现申请成功'); $this->success('提现申请成功');
@ -121,7 +121,7 @@ class Transfer extends Auth
} }
/** /**
* 用户提现记录 * 代理提现记录
* @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
@ -173,12 +173,12 @@ class Transfer extends Auth
} }
/** /**
* 获取用户提现配置 * 获取代理提现配置
* @throws \think\admin\Exception * @throws \think\admin\Exception
*/ */
public function config() public function config()
{ {
$data = UserTransfer::config(); $data = UserTransfer::config();
$this->success('获取用户提现配置', $data); $this->success('获取代理提现配置', $data);
} }
} }

View File

@ -26,14 +26,14 @@ use think\admin\helper\QueryHelper;
use think\db\Query; use think\db\Query;
/** /**
* 用户返佣管理 * 代理返佣管理
* @class Rebate * @class Rebate
* @package plugin\wemall\controller\user * @package plugin\wemall\controller\user
*/ */
class Rebate extends Controller class Rebate extends Controller
{ {
/** /**
* 用户返佣管理 * 代理返佣管理
* @auth true * @auth true
* @menu true * @menu true
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
@ -43,7 +43,7 @@ class Rebate extends Controller
public function index() public function index()
{ {
PluginWemallUserRebate::mQuery()->layTable(function () { PluginWemallUserRebate::mQuery()->layTable(function () {
$this->title = '用户返佣管理'; $this->title = '代理返佣管理';
$this->rebate = UserRebate::recount(0); $this->rebate = UserRebate::recount(0);
}, static function (QueryHelper $query) { }, static function (QueryHelper $query) {
// 数据关联 // 数据关联

View File

@ -27,7 +27,7 @@ use think\admin\helper\QueryHelper;
use think\admin\service\AdminService; use think\admin\service\AdminService;
/** /**
* 用户提现管理 * 代理提现管理
* @class Transfer * @class Transfer
* @package plugin\wemall\controller\user * @package plugin\wemall\controller\user
*/ */
@ -49,13 +49,13 @@ class Transfer extends Controller
} }
/** /**
* 用户提现配置 * 代理提现配置
* @throws \think\admin\Exception * @throws \think\admin\Exception
*/ */
public function config() public function config()
{ {
$this->skey = 'plugin.wemall.transfer.config'; $this->skey = 'plugin.wemall.transfer.config';
$this->title = '用户提现配置'; $this->title = '代理提现配置';
$this->_sysdata(); $this->_sysdata();
} }
@ -86,7 +86,7 @@ class Transfer extends Controller
} }
/** /**
* 用户提现管理 * 代理提现管理
* @menu true * @menu true
* @auth true * @auth true
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
@ -96,7 +96,7 @@ class Transfer extends Controller
public function index() public function index()
{ {
PluginWemallUserTransfer::mQuery()->layTable(function () { PluginWemallUserTransfer::mQuery()->layTable(function () {
$this->title = '用户提现管理'; $this->title = '代理提现管理';
$this->transfer = UserTransfer::amount(0); $this->transfer = UserTransfer::amount(0);
}, static function (QueryHelper $query) { }, static function (QueryHelper $query) {
// 数据列表处理 // 数据列表处理

View File

@ -23,7 +23,7 @@ use plugin\wemall\service\UserRebate;
use think\model\relation\HasOne; use think\model\relation\HasOne;
/** /**
* 用户返佣数据 * 代理返佣数据
* @class PluginWemallUserRebate * @class PluginWemallUserRebate
* @package plugin\wemall\model * @package plugin\wemall\model
*/ */

View File

@ -21,7 +21,7 @@ namespace plugin\wemall\model;
use plugin\wemall\service\UserTransfer; use plugin\wemall\service\UserTransfer;
/** /**
* 用户提现模型 * 代理提现模型
* @class PluginWemallUserTransfer * @class PluginWemallUserTransfer
* @package plugin\wemall\model * @package plugin\wemall\model
*/ */

View File

@ -227,7 +227,7 @@ abstract class UserRebate
} }
/** /**
* 同步刷新用户返佣 * 同步刷新代理返佣
* @param integer $unid 指定用户ID * @param integer $unid 指定用户ID
* @param array|null $data 非数组时更新数据 * @param array|null $data 非数组时更新数据
* @param mixed $where 其他查询条件 * @param mixed $where 其他查询条件

View File

@ -21,7 +21,7 @@ namespace plugin\wemall\service;
use plugin\wemall\model\PluginWemallUserTransfer; use plugin\wemall\model\PluginWemallUserTransfer;
/** /**
* 用户提现数据服务 * 代理提现数据服务
* @class UserTransfer * @class UserTransfer
* @package plugin\wemall\service * @package plugin\wemall\service
*/ */
@ -38,7 +38,7 @@ abstract class UserTransfer
]; ];
/** /**
* 同步刷新用户返佣 * 同步刷新代理返佣
* @param integer $unid * @param integer $unid
* @return array [total, count, audit, locks] * @return array [total, count, audit, locks]
*/ */

View File

@ -34,7 +34,7 @@
<label class="layui-form-item block relative flex-1"> <label class="layui-form-item block relative flex-1">
<span class="help-label label-required-prev"><b>累计佣金</b>Rebate Total</span> <span class="help-label label-required-prev"><b>累计佣金</b>Rebate Total</span>
<input class="layui-input" type="number" min="0" step="0.01" lay-affix="number" lay-precision="2" name="rebate_total" placeholder="请输入累计佣金" required value="{$vo.rebate_total|default='0.00'}"> <input class="layui-input" type="number" min="0" step="0.01" lay-affix="number" lay-precision="2" name="rebate_total" placeholder="请输入累计佣金" required value="{$vo.rebate_total|default='0.00'}">
<span class="help-block">将会在用户返佣记录里面创建一条记录,体现为初始佣金值。</span> <span class="help-block">将会在代理返佣记录里面创建一条记录,体现为初始佣金值。</span>
</label> </label>
<label class="layui-form-item block relative flex-1 ta-ml-15"> <label class="layui-form-item block relative flex-1 ta-ml-15">
<span class="help-label label-required-prev"><b>佣金记录描述</b>Rebate Total Remark</span> <span class="help-label label-required-prev"><b>佣金记录描述</b>Rebate Total Remark</span>
@ -47,7 +47,7 @@
<label class="layui-form-item block relative flex-1"> <label class="layui-form-item block relative flex-1">
<span class="help-label label-required-prev"><b>剩余佣金</b>Rebate Usable</span> <span class="help-label label-required-prev"><b>剩余佣金</b>Rebate Usable</span>
<input class="layui-input" type="number" lay-affix="number" min="0" step="0.01" lay-precision="2" name="rebate_usable" placeholder="请输入剩余佣金" required value="{$vo.rebate_usable|default='0.00'}"> <input class="layui-input" type="number" lay-affix="number" min="0" step="0.01" lay-precision="2" name="rebate_usable" placeholder="请输入剩余佣金" required value="{$vo.rebate_usable|default='0.00'}">
<span class="help-block">用户提现记录创建已提现金额( 累计佣金 减去 剩余佣金 </span> <span class="help-block">代理提现记录创建已提现金额( 累计佣金 减去 剩余佣金 </span>
</label> </label>
<label class="layui-form-item block relative flex-1 ta-ml-15"> <label class="layui-form-item block relative flex-1 ta-ml-15">
<span class="help-label label-required-prev"><b>提现记录描述</b>Rebate Usable Remark</span> <span class="help-label label-required-prev"><b>提现记录描述</b>Rebate Usable Remark</span>

View File

@ -2,7 +2,7 @@
<div class="layui-card-body ta-pl-40"> <div class="layui-card-body ta-pl-40">
<div class="layui-form-item relative block"> <div class="layui-form-item relative block">
<span class="help-label label-required-prev"><b>用户提现状态</b>Status</span> <span class="help-label label-required-prev"><b>代理提现状态</b>Status</span>
<div class="layui-textarea help-checks"> <div class="layui-textarea help-checks">
{php} $data['status'] = $data['status'] ?? 0; {/php} {php} $data['status'] = $data['status'] ?? 0; {/php}
{foreach ['关闭返佣提现', '开启返佣提现'] as $k => $v} {foreach ['关闭返佣提现', '开启返佣提现'] as $k => $v}
@ -93,9 +93,9 @@
</div> </div>
<div class="layui-form-item relative block"> <div class="layui-form-item relative block">
<span class="help-label"><b>用户提现描述内容</b>Remark</span> <span class="help-label"><b>代理提现描述内容</b>Remark</span>
<label class="relative block"> <label class="relative block">
<textarea class="layui-textarea" name="remark" placeholder="请输入用户提现描述内容">{$data.remark|default=''}</textarea> <textarea class="layui-textarea" name="remark" placeholder="请输入代理提现描述内容">{$data.remark|default=''}</textarea>
</label> </label>
</div> </div>