|
|
|
@ -135,6 +135,7 @@ class Order extends OrderModel |
|
|
|
|
$info = $service->data()['storeInfo']->toArray(); |
|
|
|
|
//todo wmc |
|
|
|
|
$info['phone'] = 13770778236; |
|
|
|
|
|
|
|
|
|
foreach ($list['data'] as &$v) { |
|
|
|
|
$v['storeInfo'] = $info; |
|
|
|
|
} |
|
|
|
@ -156,6 +157,11 @@ class Order extends OrderModel |
|
|
|
|
return $res; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function orderfast() |
|
|
|
|
{//todo wmc |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 取消订单 |
|
|
|
|
* @return bool|mixed |
|
|
|
@ -349,6 +355,14 @@ class Order extends OrderModel |
|
|
|
|
// 查询订单记录 |
|
|
|
|
$order = static::detail($where, $with); |
|
|
|
|
empty($order) && throwError('订单不存在'); |
|
|
|
|
|
|
|
|
|
//这边后面改成多商户的话需要根据storeid去获取信息 |
|
|
|
|
$service = new StoreService; |
|
|
|
|
$info = $service->data()['storeInfo']->toArray(); |
|
|
|
|
//todo wmc |
|
|
|
|
$info['phone'] = 13770778236; |
|
|
|
|
|
|
|
|
|
$order->storeInfo = $info; |
|
|
|
|
return $order; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|