ff
This commit is contained in:
parent
7a64016981
commit
baf8cdb55a
@ -36,7 +36,7 @@ class LogisticsLogic extends BaseLogic
|
|||||||
*/
|
*/
|
||||||
public static function list($params):array {
|
public static function list($params):array {
|
||||||
//获取物流列表
|
//获取物流列表
|
||||||
if(empty($params['status'])){
|
if(!isset($params['status'])){
|
||||||
$status = ['status','in','0,1'];
|
$status = ['status','in','0,1'];
|
||||||
}else{
|
}else{
|
||||||
$status = ['status','=',$params['status']];
|
$status = ['status','=',$params['status']];
|
||||||
@ -214,8 +214,8 @@ class LogisticsLogic extends BaseLogic
|
|||||||
$record = [
|
$record = [
|
||||||
'lst_id' => $logistics['id'],
|
'lst_id' => $logistics['id'],
|
||||||
'type' => 2,
|
'type' => 2,
|
||||||
'user_name' => $courier['name'],
|
'user_name' => $courier['nickname'],
|
||||||
'user_phone' => $courier['phone'],
|
'user_phone' => $courier['mobile'],
|
||||||
'content' => '已完成配送',
|
'content' => '已完成配送',
|
||||||
'create_time' => time(),
|
'create_time' => time(),
|
||||||
];
|
];
|
||||||
@ -256,6 +256,11 @@ class LogisticsLogic extends BaseLogic
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 取消订单
|
||||||
|
* @param $params
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
public static function cancel($params):array {
|
public static function cancel($params):array {
|
||||||
//获取物流信息
|
//获取物流信息
|
||||||
$logistics = Logistics::where('id', $params['logistics_id'])->where('user_id',$params['user_id'])->find();
|
$logistics = Logistics::where('id', $params['logistics_id'])->where('user_id',$params['user_id'])->find();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user