金柚修改限制标记

This commit is contained in:
“wanyongkang”
2025-05-28 10:50:05 +08:00
parent 24a9b4a960
commit 272d5e6132
2 changed files with 17 additions and 2 deletions

View File

@@ -21,7 +21,15 @@ class Jinyoudt extends Controller
$account_model = new AccountModel;
$account_model->updateOne($where, ['im' => '1']);
$im_now = $account_model->getOne($where);
$im = 1;
if ($im_now) {
$im = 0;
}
$account_model->updateOne($where, ['im' => $im]);
$jinyou = new Jinyou();
$status = $jinyou::openTxLimit($data['account']);
echo json_encode(['Code'=>30000,]);

View File

@@ -444,7 +444,14 @@ class Jinyoujt extends Controller
$account_model = new AccountModel;
$account_model->updateOne($where, ['im' => '1']);
$im_now = $account_model->getOne($where);
$im = 1;
if ($im_now) {
$im = 0;
}
$account_model->updateOne($where, ['im' => $im]);
$jinyou = new Jinyoujingtai();
$status = $jinyou::setFirewallStatus($data['account'],$type,121);