ApiExceptionCustom.php
334 字节
<?php
namespace app\api\exception;
class ApiExceptionCustom extends \app\common\controller\Api
{
protected $noNeedLogin = ['throw_api_exception'];
protected $noNeedRight = ['*'];
/**
* 抛出异常
* @param $err 异常
*/
public function throw_api_exception($err){
$this->error($err);
}
}