作者 lyh

gx

@@ -79,7 +79,6 @@ class RatingLogic extends BaseLogic @@ -79,7 +79,6 @@ class RatingLogic extends BaseLogic
79 $str = trim($str,'&'); 79 $str = trim($str,'&');
80 $url = "http://www.quanqiusou.cn/extend_api/api/service_score.php?postid=$postId&token=$token&ftype=$fType&$str"; 80 $url = "http://www.quanqiusou.cn/extend_api/api/service_score.php?postid=$postId&token=$token&ftype=$fType&$str";
81 $rs = http_get($url,['charset=utf-8']); 81 $rs = http_get($url,['charset=utf-8']);
82 -// \Illuminate\Support\Facades\Log::info('同步打分系统信息:'.$url);  
83 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($url, true) . PHP_EOL, FILE_APPEND); 82 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($url, true) . PHP_EOL, FILE_APPEND);
84 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($rs, true) . PHP_EOL, FILE_APPEND); 83 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($rs, true) . PHP_EOL, FILE_APPEND);
85 return $rs; 84 return $rs;
@@ -228,11 +228,13 @@ class TranslateLogic extends BaseLogic @@ -228,11 +228,13 @@ class TranslateLogic extends BaseLogic
228 */ 228 */
229 public function translateSave(){ 229 public function translateSave(){
230 $data = []; 230 $data = [];
231 - //处理传递的data  
232 - foreach ($this->param['data'] as $k => $v){  
233 - if(!empty($v) && is_array($v)){  
234 - foreach ($v as $text => $translate){  
235 - $data[$text] = $translate; 231 + if(!empty($this->param['data'])){
  232 + //处理传递的data
  233 + foreach ($this->param['data'] as $k => $v){
  234 + if(!empty($v) && is_array($v)){
  235 + foreach ($v as $text => $translate){
  236 + $data[$text] = $translate;
  237 + }
236 } 238 }
237 } 239 }
238 } 240 }