update 首单订单详情

This commit is contained in:
chenbo 2024-01-22 15:31:13 +08:00
parent c678d95e4d
commit 61a26d5738
1 changed files with 1 additions and 0 deletions

View File

@ -326,6 +326,7 @@ class UserController extends BaseApiController
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'])->select(); $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'])->select();
$item['create_time'] = date('Y-m-d H:i:s', $item['create_time']);
} }
$data = [ $data = [
'lists' => $firstOrderLogList, 'lists' => $firstOrderLogList,