修改删除账号的判断条件

This commit is contained in:
“wanyongkang”
2025-05-23 15:08:20 +08:00
parent 9695c0114a
commit 853e9d4855

View File

@@ -71,23 +71,27 @@ class Account extends Controller
$where = [ $where = [
'Id' => $data['id'], 'Id' => $data['id'],
'DeleteTag' => 0 'DeleteTag' => 0,
'EndTime' => ['<',date('Y-m-d H:i:s')]
]; ];
$account_info = $account_model->getOne($where); $account_info = $account_model->getOne($where);
$update_data['DeleteTag'] = 1; if ($account_info) {
if ($account_info['ProductId'] == 29) { $update_data['DeleteTag'] = 1;
$url = "http://124.236.113.166:18702/api/agent/deleteAcct/apikey/80cf4f64e990b78a9fc5eb/account/".$account_info['Account'];
linkcurl($url,'GET',[],[],0); if ($account_info['ProductId'] == 29) {
} elseif ($account_info['ProductId'] == 3 || $account_info['ProductId'] == 26) { $url = "http://124.236.113.166:18702/api/agent/deleteAcct/apikey/80cf4f64e990b78a9fc5eb/account/".$account_info['Account'];
$url = "http://106.119.166.87:18702/api/agent/deleteAcct/apikey/80cf4f64e990b78a9fc5eb/account/".$account_info['Account']; linkcurl($url,'GET',[],[],0);
linkcurl($url,'GET',[],[],0); } elseif ($account_info['ProductId'] == 3 || $account_info['ProductId'] == 26) {
$url = "http://106.119.166.87:18702/api/agent/deleteAcct/apikey/80cf4f64e990b78a9fc5eb/account/".$account_info['Account'];
linkcurl($url,'GET',[],[],0);
}
$account_model->updateOne($where,$update_data);
} }
$account_model->updateOne($where,$update_data);
echo json_encode(['Code'=>30000,]); echo json_encode(['Code'=>30000,]);
} }
} }