修改一些BUG

This commit is contained in:
技术老胡
2024-08-31 17:18:46 +08:00
parent 0f3fad95c8
commit 31354de6f5
8 changed files with 10 additions and 78 deletions

View File

@@ -65,6 +65,10 @@ class PayManageController extends BaseController
$info = $this->request->post();
$pid = $this->request->session('pid');
$info['pid'] = $pid;
$check_acc = PayAccount::where(['account' => $info['account'], 'pid' => $pid])->find();
if ($check_acc) {
return \json(\backMsg(1, '账号已存在'));
}
$acc = PayAccount::create($info);
if ($acc) {
$this->createAccountConfig($acc);