Skip to content

Commit

Permalink
fix: 批量修改文字描述
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujingli committed Aug 5, 2024
1 parent 9aab0a5 commit 747a7dc
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions plugin/think-plugs-wemall/src/command/Trans.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
use WePayV3\Transfers as TransfersV3;

/**
* 用户提现处理
* 代理提现处理
* @class Trans
* @package app\data\command
*/
class Trans extends Command
{
/**
* 用户提现配置
* 代理提现配置
* @return void
*/
protected function configure()
Expand Down
4 changes: 2 additions & 2 deletions plugin/think-plugs-wemall/src/controller/api/auth/Rebate.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
use plugin\wemall\service\UserRebate;

/**
* 用户返佣管理
* 代理返佣管理
* @class Rebate
* @package plugin\wemall\controller\api\auth
*/
class Rebate extends Auth
{
/**
* 获取用户返佣记录
* 获取代理返佣记录
* @return void
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
Expand Down
10 changes: 5 additions & 5 deletions plugin/think-plugs-wemall/src/controller/api/auth/Transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use think\admin\extend\CodeExtend;

/**
* 用户提现接口
* 代理提现接口
* @class Transfer
* @package plugin\wemall\controller\api\auth
*/
Expand Down Expand Up @@ -111,7 +111,7 @@ public function add()
if ($transfers[$data['type']]['maxAmount'] < $data['amount']) {
$this->error("不能大于{$transfers[$data['type']]['maxAmount']}");
}
// 写入用户提现数据
// 写入代理提现数据
if (PluginWemallUserTransfer::mk()->save($data)) {
UserRebate::recount($this->unid);
$this->success('提现申请成功');
Expand All @@ -121,7 +121,7 @@ public function add()
}

/**
* 用户提现记录
* 代理提现记录
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
Expand Down Expand Up @@ -173,12 +173,12 @@ public function confirm()
}

/**
* 获取用户提现配置
* 获取代理提现配置
* @throws \think\admin\Exception
*/
public function config()
{
$data = UserTransfer::config();
$this->success('获取用户提现配置', $data);
$this->success('获取代理提现配置', $data);
}
}
6 changes: 3 additions & 3 deletions plugin/think-plugs-wemall/src/controller/user/Rebate.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
use think\db\Query;

/**
* 用户返佣管理
* 代理返佣管理
* @class Rebate
* @package plugin\wemall\controller\user
*/
class Rebate extends Controller
{
/**
* 用户返佣管理
* 代理返佣管理
* @auth true
* @menu true
* @throws \think\db\exception\DataNotFoundException
Expand All @@ -43,7 +43,7 @@ class Rebate extends Controller
public function index()
{
PluginWemallUserRebate::mQuery()->layTable(function () {
$this->title = '用户返佣管理';
$this->title = '代理返佣管理';
$this->rebate = UserRebate::recount(0);
}, static function (QueryHelper $query) {
// 数据关联
Expand Down
10 changes: 5 additions & 5 deletions plugin/think-plugs-wemall/src/controller/user/Transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use think\admin\service\AdminService;

/**
* 用户提现管理
* 代理提现管理
* @class Transfer
* @package plugin\wemall\controller\user
*/
Expand All @@ -49,13 +49,13 @@ protected function initialize()
}

/**
* 用户提现配置
* 代理提现配置
* @throws \think\admin\Exception
*/
public function config()
{
$this->skey = 'plugin.wemall.transfer.config';
$this->title = '用户提现配置';
$this->title = '代理提现配置';
$this->_sysdata();
}

Expand Down Expand Up @@ -86,7 +86,7 @@ private function _sysdata()
}

/**
* 用户提现管理
* 代理提现管理
* @menu true
* @auth true
* @throws \think\db\exception\DataNotFoundException
Expand All @@ -96,7 +96,7 @@ private function _sysdata()
public function index()
{
PluginWemallUserTransfer::mQuery()->layTable(function () {
$this->title = '用户提现管理';
$this->title = '代理提现管理';
$this->transfer = UserTransfer::amount(0);
}, static function (QueryHelper $query) {
// 数据列表处理
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use think\model\relation\HasOne;

/**
* 用户返佣数据
* 代理返佣数据
* @class PluginWemallUserRebate
* @package plugin\wemall\model
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use plugin\wemall\service\UserTransfer;

/**
* 用户提现模型
* 代理提现模型
* @class PluginWemallUserTransfer
* @package plugin\wemall\model
*/
Expand Down
2 changes: 1 addition & 1 deletion plugin/think-plugs-wemall/src/service/UserRebate.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public static function cancel($order): bool
}

/**
* 同步刷新用户返佣
* 同步刷新代理返佣
* @param integer $unid 指定用户ID
* @param array|null $data 非数组时更新数据
* @param mixed $where 其他查询条件
Expand Down
4 changes: 2 additions & 2 deletions plugin/think-plugs-wemall/src/service/UserTransfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use plugin\wemall\model\PluginWemallUserTransfer;

/**
* 用户提现数据服务
* 代理提现数据服务
* @class UserTransfer
* @package plugin\wemall\service
*/
Expand All @@ -38,7 +38,7 @@ abstract class UserTransfer
];

/**
* 同步刷新用户返佣
* 同步刷新代理返佣
* @param integer $unid
* @return array [total, count, audit, locks]
*/
Expand Down
4 changes: 2 additions & 2 deletions plugin/think-plugs-wemall/src/view/user/create/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<label class="layui-form-item block relative flex-1">
<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'}">
<span class="help-block">将会在用户返佣记录里面创建一条记录,体现为初始佣金值。</span>
<span class="help-block">将会在代理返佣记录里面创建一条记录,体现为初始佣金值。</span>
</label>
<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>
Expand All @@ -47,7 +47,7 @@
<label class="layui-form-item block relative flex-1">
<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'}">
<span class="help-block">在用户提现记录创建已提现金额( 累计佣金 减去 剩余佣金 )</span>
<span class="help-block">在代理提现记录创建已提现金额( 累计佣金 减去 剩余佣金 )</span>
</label>
<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>
Expand Down
6 changes: 3 additions & 3 deletions plugin/think-plugs-wemall/src/view/user/transfer/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="layui-card-body ta-pl-40">

<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">
{php} $data['status'] = $data['status'] ?? 0; {/php}
{foreach ['关闭返佣提现', '开启返佣提现'] as $k => $v}
Expand Down Expand Up @@ -93,9 +93,9 @@
</div>

<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">
<textarea class="layui-textarea" name="remark" placeholder="请输入用户提现描述内容">{$data.remark|default=''}</textarea>
<textarea class="layui-textarea" name="remark" placeholder="请输入代理提现描述内容">{$data.remark|default=''}</textarea>
</label>
</div>

Expand Down

0 comments on commit 747a7dc

Please sign in to comment.