Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
3 个修改的文件
包含
8 行增加
和
3 行删除
| @@ -297,7 +297,12 @@ class ProductController extends BaseController | @@ -297,7 +297,12 @@ class ProductController extends BaseController | ||
| 297 | }elseif($v['type'] == 4){ | 297 | }elseif($v['type'] == 4){ |
| 298 | $arr1 = json_decode($info['values']); | 298 | $arr1 = json_decode($info['values']); |
| 299 | foreach ($arr1 as $k1=>$v1){ | 299 | foreach ($arr1 as $k1=>$v1){ |
| 300 | - $v1 = getFileUrl($v1); | 300 | + $v1 = (array)$v1; |
| 301 | + if(isset($v1['url'])){ | ||
| 302 | + $v1['url'] = getFileUrl($v1['url']); | ||
| 303 | + }else{ | ||
| 304 | + $v1 = getFileUrl($v1); | ||
| 305 | + } | ||
| 301 | $arr1[$k1] = $v1; | 306 | $arr1[$k1] = $v1; |
| 302 | } | 307 | } |
| 303 | $v['values'] = $arr1; | 308 | $v['values'] = $arr1; |
| @@ -30,7 +30,7 @@ class MonthCountLogic extends BaseLogic | @@ -30,7 +30,7 @@ class MonthCountLogic extends BaseLogic | ||
| 30 | */ | 30 | */ |
| 31 | public function getCountLists($map,$order = 'created_at',$filed = ['*']){ | 31 | public function getCountLists($map,$order = 'created_at',$filed = ['*']){ |
| 32 | $map['project_id'] = $this->user['project_id']; | 32 | $map['project_id'] = $this->user['project_id']; |
| 33 | - $lists = $this->model->list($map,$order,$filed); | 33 | + $lists = $this->model->list($map,$order,$filed,'desc',10); |
| 34 | if(isset($this->project['is_record_china_visit']) && ($this->project['is_record_china_visit'] == 0)){ | 34 | if(isset($this->project['is_record_china_visit']) && ($this->project['is_record_china_visit'] == 0)){ |
| 35 | foreach ($lists as $k => $v){ | 35 | foreach ($lists as $k => $v){ |
| 36 | if(empty($v['source_country'])){ | 36 | if(empty($v['source_country'])){ |
| @@ -175,7 +175,7 @@ class ProductLogic extends BaseLogic | @@ -175,7 +175,7 @@ class ProductLogic extends BaseLogic | ||
| 175 | $v['values'] = json_encode($v['values']); | 175 | $v['values'] = json_encode($v['values']); |
| 176 | }elseif ($v['type'] == 4){ | 176 | }elseif ($v['type'] == 4){ |
| 177 | foreach ($v['values'] as $k1=>$v1){ | 177 | foreach ($v['values'] as $k1=>$v1){ |
| 178 | - $v1 = str_replace_url($v1); | 178 | + $v1['url'] = str_replace_url($v1['url']); |
| 179 | $v['values'][$k1] = $v1; | 179 | $v['values'][$k1] = $v1; |
| 180 | } | 180 | } |
| 181 | $v['values'] = json_encode($v['values']); | 181 | $v['values'] = json_encode($v['values']); |
-
请 注册 或 登录 后发表评论