作者 Cool
1 个管道 的构建 通过 耗费 1 秒

订单管理图片字段优化

@@ -169,6 +169,9 @@ class OrderSalesmanController extends WeChatBaseController @@ -169,6 +169,9 @@ class OrderSalesmanController extends WeChatBaseController
169 $indent_ids = []; 169 $indent_ids = [];
170 foreach($data as $key => $vo){ 170 foreach($data as $key => $vo){
171 $indent_goods = $indentGoodsModel->selectData(['indent_id'=>$vo['id']]); 171 $indent_goods = $indentGoodsModel->selectData(['indent_id'=>$vo['id']]);
  172 + foreach ($indent_goods as &$vi) {
  173 + $vi['thumbnail'] = cmf_get_image_url($vi['thumbnail']);
  174 + }
172 $data[$key]['indent_goods'] = $indent_goods; 175 $data[$key]['indent_goods'] = $indent_goods;
173 if($vo['is_courier'] == 2){ 176 if($vo['is_courier'] == 2){
174 $address = Db::name('address')->where(['id'=>$vo['indent_address']])->find(); 177 $address = Db::name('address')->where(['id'=>$vo['indent_address']])->find();