www.3112.net > yii2 异常处理

yii2 异常处理

* @param array $data * @return string */ public function getBank($data) { try { $client = $this->getClient(); $params = $this->getConnectParams(array('username' => $data['username'])); $response = $client->GetBank($params); $re...

可以查看此链接https://github.com/yiisoft/yii2/blob/master/docs/guide-zh-CN/rest-error-handling.md,里面有说到这个异常定制

if(isset($this->allowedLanguages[$language])) $this->language=; 把这“$language”改为“$lang”

网站地图

All rights reserved Powered by www.3112.net

copyright ©right 2010-2021。
www.3112.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com