添加解除限制的标记

This commit is contained in:
“wanyongkang”
2025-05-28 10:24:43 +08:00
parent 1a4dbef678
commit 24a9b4a960
3 changed files with 33 additions and 0 deletions

View File

@@ -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'];