金柚修改限制标记
This commit is contained in:
@@ -21,7 +21,15 @@ class Jinyoudt extends Controller
|
|||||||
|
|
||||||
$account_model = new AccountModel;
|
$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();
|
$jinyou = new Jinyou();
|
||||||
$status = $jinyou::openTxLimit($data['account']);
|
$status = $jinyou::openTxLimit($data['account']);
|
||||||
echo json_encode(['Code'=>30000,]);
|
echo json_encode(['Code'=>30000,]);
|
||||||
|
|||||||
@@ -444,7 +444,14 @@ class Jinyoujt extends Controller
|
|||||||
|
|
||||||
$account_model = new AccountModel;
|
$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();
|
$jinyou = new Jinyoujingtai();
|
||||||
$status = $jinyou::setFirewallStatus($data['account'],$type,121);
|
$status = $jinyou::setFirewallStatus($data['account'],$type,121);
|
||||||
|
|||||||
Reference in New Issue
Block a user