|
|
@@ -76,12 +76,12 @@ class User extends Api
|
|
|
|
|
|
$list = $productOrder->alias('a')
|
|
|
->join("product_list b", "b.id = a.product_id", "left")
|
|
|
- ->join("products c", "c.id = a.type_id", "left")
|
|
|
+ ->join("products c", "c.id = b.type_id", "left")
|
|
|
->field('a.id as order_id,a.product_id,'.'b.'.$this->lan.'_name,b.images as img_url,a.price,a.status,a.type_id,c.'.$this->lan.'_title')
|
|
|
->where('a.user_id', $this->auth->id)
|
|
|
->order('a.id DESC')
|
|
|
->paginate($this->pageSize);
|
|
|
-
|
|
|
+
|
|
|
$this->success('', $list);
|
|
|
}
|
|
|
|