作者 lyh

gx

@@ -157,9 +157,7 @@ class ComController extends BaseController @@ -157,9 +157,7 @@ class ComController extends BaseController
157 public function stringTranslation(){ 157 public function stringTranslation(){
158 $str = $this->param['str']; 158 $str = $this->param['str'];
159 $rs = isChinese($str); 159 $rs = isChinese($str);
160 - var_dump($rs);  
161 - die();  
162 - if($rs === true){ 160 + if($rs == true){
163 $str = Translate::tran($this->param['str'], 'en'); 161 $str = Translate::tran($this->param['str'], 'en');
164 } 162 }
165 $this->response('success',Code::SUCCESS,$str); 163 $this->response('success',Code::SUCCESS,$str);