logistics record order by create_time asc

This commit is contained in:
unknown 2023-08-16 15:20:22 +08:00
parent 3a0eb05ab7
commit c4135a713a

View File

@ -59,7 +59,7 @@ class LogisticsLogic extends BaseLogic
$logistics['product'] = $product;
//获取物流记录
$records = LogisticsRecord::field('type,user_name,content,create_time')
->where('lst_id', $logistics['id'])->order('create_time desc')->select()->each(function($red_item){
->where('lst_id', $logistics['id'])->order('create_time asc')->select()->each(function($red_item){
switch ($red_item['type']) {
case 1:
$red_item['content'] = '用户'.$red_item['user_name'].$red_item['content'];