获取售后的订单状态
This commit is contained in:
parent
6591e5c8bc
commit
e2b7dc8bea
@ -310,11 +310,12 @@ class AfterSaleLogic extends Logic
|
|||||||
*/
|
*/
|
||||||
public static function info($item_id, $order_id)
|
public static function info($item_id, $order_id)
|
||||||
{
|
{
|
||||||
|
|
||||||
$goods = new OrderGoods();
|
$goods = new OrderGoods();
|
||||||
$where = ['order_id' => $order_id, 'item_id' => $item_id];
|
$where = ['order_id' => $order_id, 'item_id' => $item_id];
|
||||||
$info = $goods->where($where)->find()->toArray();
|
$info = $goods->where($where)->find()->toArray();
|
||||||
$goods['image'] = isset($info['image']) ? UrlServer::getFileUrl($info['image']) : '';
|
$goods['image'] = isset($info['image']) ? UrlServer::getFileUrl($info['image']) : '';
|
||||||
|
$order = Order::where('id', $info['order_id'])->field('order_status')->find()->toArray();
|
||||||
|
$goods['order_status'] = $order['order_status'];
|
||||||
$data = [
|
$data = [
|
||||||
'goods' => $info,
|
'goods' => $info,
|
||||||
'reason' => AfterSale::getReasonLists(),
|
'reason' => AfterSale::getReasonLists(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user