详情处理
This commit is contained in:
parent
8c7684477f
commit
baa01821e2
@ -367,7 +367,8 @@ class OrderController extends BaseApiController
|
|||||||
'id' => $order_id,
|
'id' => $order_id,
|
||||||
'uid' => $this->userId,
|
'uid' => $this->userId,
|
||||||
];
|
];
|
||||||
$order = OrderLogic::detail($where);
|
$url = 'https://'.$this->request->host(true);
|
||||||
|
$order = OrderLogic::detail($where,$url);
|
||||||
if ($order) {
|
if ($order) {
|
||||||
return $this->data($order);
|
return $this->data($order);
|
||||||
} else {
|
} else {
|
||||||
|
@ -360,7 +360,7 @@ class OrderLogic extends BaseLogic
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static function detail($params): array
|
public static function detail($params,$url=''): array
|
||||||
{
|
{
|
||||||
$find = StoreOrder::where($params)->findOrEmpty()->toArray();
|
$find = StoreOrder::where($params)->findOrEmpty()->toArray();
|
||||||
if ($find) {
|
if ($find) {
|
||||||
@ -378,6 +378,10 @@ class OrderLogic extends BaseLogic
|
|||||||
|
|
||||||
$store = SystemStore::where('id', $find['store_id'])->field('id,name,phone,address,detailed_address')->find();
|
$store = SystemStore::where('id', $find['store_id'])->field('id,name,phone,address,detailed_address')->find();
|
||||||
$find['store_info'] = $store;
|
$find['store_info'] = $store;
|
||||||
|
|
||||||
|
if($find['verify_img']){
|
||||||
|
$find['verify_img'] = 'https://'.$url.$find['verify_img'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $find;
|
return $find;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user