添加解除限制的标记
This commit is contained in:
@@ -4,6 +4,7 @@ namespace app\jinyou\controller;
|
||||
|
||||
use extend\jinyouapi\Jinyou;
|
||||
use fastphp\base\Controller;
|
||||
use app\product\model\ProductAccount as AccountModel;
|
||||
|
||||
class Jinyoudt extends Controller
|
||||
{
|
||||
@@ -12,6 +13,15 @@ class Jinyoudt extends Controller
|
||||
if(!$data){
|
||||
die;
|
||||
}
|
||||
$where = [
|
||||
'ProductId' => $data['productId'],
|
||||
'DeleteTag' => 0,
|
||||
'Account' => $data['account']
|
||||
];
|
||||
|
||||
$account_model = new AccountModel;
|
||||
|
||||
$account_model->updateOne($where, ['im' => '1']);
|
||||
$jinyou = new Jinyou();
|
||||
$status = $jinyou::openTxLimit($data['account']);
|
||||
echo json_encode(['Code'=>30000,]);
|
||||
|
||||
@@ -435,6 +435,17 @@ class Jinyoujt extends Controller
|
||||
if ($package[0] == '静态') {
|
||||
$type = 0;
|
||||
}
|
||||
|
||||
$where = [
|
||||
'ProductId' => $data['productId'],
|
||||
'DeleteTag' => 0,
|
||||
'Account' => $data['account']
|
||||
];
|
||||
|
||||
$account_model = new AccountModel;
|
||||
|
||||
$account_model->updateOne($where, ['im' => '1']);
|
||||
|
||||
$jinyou = new Jinyoujingtai();
|
||||
$status = $jinyou::setFirewallStatus($data['account'],$type,121);
|
||||
echo json_encode(['Code'=>30000,]);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace app\product\controller;
|
||||
|
||||
use fastphp\base\Controller;
|
||||
use app\product\model\ProductAccount as AccountModel;
|
||||
|
||||
class OpenAccountLimit extends Controller
|
||||
{
|
||||
@@ -11,6 +12,17 @@ class OpenAccountLimit extends Controller
|
||||
if(!$data){
|
||||
die;
|
||||
}
|
||||
|
||||
$where = [
|
||||
'ProductId' => $data['productId'],
|
||||
'DeleteTag' => 0,
|
||||
'Account' => $data['account']
|
||||
];
|
||||
|
||||
$account_model = new AccountModel;
|
||||
|
||||
$account_model->updateOne($where, ['im' => '1']);
|
||||
|
||||
// dump($data);die;
|
||||
if ($data['productId'] == 18) {
|
||||
$url = "http://rds-api.juip.com/api/agent/openIM/account/".$data['account'];
|
||||
|
||||
Reference in New Issue
Block a user