public function __construct() { if (!WF_Auth::isLogin()) { $this->code = 403; $this->mess = '登陆已过期,请重新登陆'; $this->show(); } if (!WF_Auth::isAllow()) { $this->code = 403; $this->mess = 'Request api not auth'; $this->show(); } $act = 'on_' . WF_ACTION_NAME; if (!method_exists($this, $act)) { $this->code = 300; $this->mess = 'Request api not found'; $this->show(); } $this->FileFS = new WF_FileFS(); $this->init(); $this->{$act}(); }