1
這裏就是我有我的WHMCS鉤:WHMCS行動掛鉤
<?php
function hook_api_suspend($vars) {
$table = "apis_user_profiles";
$update = array("status"=>"0");
$where = array("user_id"=>"342329");
update_query($table,$update,$where);
}
add_hook('AfterModuleSuspend', 1, 'hook_api_suspend');
?>
這是我專門有問題的行:
$where = array("user_id"=>"342329");
當我暫停的帳戶,它更新用戶的狀態正確,user_id
爲342329.但是,如何才能使用實際用戶帳戶的user_id被暫停?我已經嘗試在那裏輸入一些變量,但似乎沒有工作......?