正在显示
2 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -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,6 +228,7 @@ class TranslateLogic extends BaseLogic | @@ -228,6 +228,7 @@ class TranslateLogic extends BaseLogic | ||
| 228 | */ | 228 | */ |
| 229 | public function translateSave(){ | 229 | public function translateSave(){ |
| 230 | $data = []; | 230 | $data = []; |
| 231 | + if(!empty($this->param['data'])){ | ||
| 231 | //处理传递的data | 232 | //处理传递的data |
| 232 | foreach ($this->param['data'] as $k => $v){ | 233 | foreach ($this->param['data'] as $k => $v){ |
| 233 | if(!empty($v) && is_array($v)){ | 234 | if(!empty($v) && is_array($v)){ |
| @@ -236,6 +237,7 @@ class TranslateLogic extends BaseLogic | @@ -236,6 +237,7 @@ class TranslateLogic extends BaseLogic | ||
| 236 | } | 237 | } |
| 237 | } | 238 | } |
| 238 | } | 239 | } |
| 240 | + } | ||
| 239 | try { | 241 | try { |
| 240 | $info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'type'=>$this->param['type']]); | 242 | $info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'type'=>$this->param['type']]); |
| 241 | if($info === false){ | 243 | if($info === false){ |
-
请 注册 或 登录 后发表评论