Compare commits
2 Commits
137715d252
...
6753d7558a
Author | SHA1 | Date |
---|---|---|
chenbo | 6753d7558a | |
chenbo | 5009f0a239 |
|
@ -322,7 +322,7 @@ class UserController extends BaseApiController
|
||||||
{
|
{
|
||||||
$page = $this->request->param('page_no', 1);
|
$page = $this->request->param('page_no', 1);
|
||||||
$limit = $this->request->param('page_size', 15);
|
$limit = $this->request->param('page_size', 15);
|
||||||
$firstOrderLogList = Db::name('user_invite_first_order_log')->where('user_id', $this->userId)->page($page, $limit)->select()->toArray();
|
$firstOrderLogList = Db::name('user_invite_first_order_log')->where('user_id', $this->userId)->page($page, $limit)->order('id', 'desc')->select()->toArray();
|
||||||
|
|
||||||
foreach ($firstOrderLogList as &$item) {
|
foreach ($firstOrderLogList as &$item) {
|
||||||
$item['order_info'] = Db::connect('mysql2')->name('store_order')->alias('o')->field('o.total_num,p.store_name,p.image')->leftJoin('store_order_product op', 'o.order_id=op.order_id')->leftJoin('store_product p', 'op.product_id = p.product_id')->where('o.order_sn', $item['order_no'])->find();
|
$item['order_info'] = Db::connect('mysql2')->name('store_order')->alias('o')->field('o.total_num,p.store_name,p.image')->leftJoin('store_order_product op', 'o.order_id=op.order_id')->leftJoin('store_product p', 'op.product_id = p.product_id')->where('o.order_sn', $item['order_no'])->find();
|
||||||
|
|
Loading…
Reference in New Issue