$class = $message_data;//類(lèi)
$method = $message_data;//方法
$args = $message_data;//參數(shù)
if(file_exists(__DIR__.'/Controller/'.$class.'.class.php'))
{
require_once __DIR__.'/Controller/'.$class.'.class.php';
$exec=$class.'::'.$method;
call_user_func_array($exec, array($args));
}else
{
return ;
}
問(wèn)題:怎么保證接口的安全性?使用token驗(yàn)證呢還是,有其他方法?