Merge branch 'master' of https://git.shagain.club/shulang/webman
This commit is contained in:
commit
ee4bc4da30
|
@ -54,6 +54,7 @@ class JobuserController
|
|||
// 使用 join 进行关联查询 f_id 对应的用户名称
|
||||
$users = $query->leftJoin('users as u', 'users.f_id', '=', 'u.id') // 假设 users 表有 id 字段,f_id 关联到父用户
|
||||
->select('users.*', 'u.username as parent_username') // 选择用户表的字段和关联表的 username 字段
|
||||
->orderBy('id', 'desc')
|
||||
->get(); // 或者使用 paginate() 来进行分页
|
||||
|
||||
// 格式化结果为数组
|
||||
|
|
|
@ -56,7 +56,7 @@ class WithdrawController
|
|||
$status = (int)$data['status']; // 强制转换为整数
|
||||
$query->where('status', $status);
|
||||
}
|
||||
|
||||
$query->orderBy('id', 'desc');
|
||||
// 执行查询并返回数据
|
||||
$users = $query->paginate($data['pageSize'], ['*'], 'page', $data['current']); // 或者使用 paginate() 来进行分页
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ class WithdrawController
|
|||
'status_text' => '申请中',
|
||||
]);
|
||||
//大于1000等待管理员审核
|
||||
if ($money >= 1000) {
|
||||
if ($money >= 100000) {
|
||||
return ApiResponseApp::success(null, '等待管理员审核');
|
||||
}
|
||||
//用户积分减少$money
|
||||
|
|
|
@ -696,17 +696,11 @@ const Ce = L(
|
|||
(o.value.bank_name = e[0]), (i.value = !1);
|
||||
},
|
||||
r = (e) => {
|
||||
/^[A-Za-z\u4e00-\u9fa5]+$/.test(o.value.bank_username) ||
|
||||
(j(l("请输入正确的用户名")),
|
||||
(o.value.bank_username = o.value.bank_username.slice(
|
||||
0,
|
||||
o.value.bank_username.length - 1
|
||||
)));
|
||||
},
|
||||
k = () => {
|
||||
if (o.value.bank_username) {
|
||||
if (!/^[A-Za-z\u4e00-\u9fa5]+$/.test(o.value.bank_username))
|
||||
return void j(l("请输入正确的用户名"));
|
||||
// if (!/^[A-Za-z\u4e00-\u9fa5]+$/.test(o.value.bank_username))
|
||||
// return void j(l("请输入正确的用户名2"));
|
||||
}
|
||||
D({ forbidClick: !0, duration: 0 }),
|
||||
ae({ ...o.value, bank_name: o.value.bank_name.key }).then((e) => {
|
||||
|
|
Loading…
Reference in New Issue