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

订单管理图片字段优化

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