|
|
@@ -105,4 +105,16 @@ class OrderController extends BaseApiController
|
|
|
}
|
|
|
return $this->success('确认收货成功', [], 1, 1);
|
|
|
}
|
|
|
+
|
|
|
+ public function deleteOrder()
|
|
|
+ {
|
|
|
+ $params = (new ShopOrderValidate())->goCheck('detail',[
|
|
|
+ 'worker_id' => $this->userId,
|
|
|
+ ]);
|
|
|
+ $result = ShopOrderLogic::deleteOrder($params);
|
|
|
+ if (false === $result) {
|
|
|
+ return $this->fail(ShopOrderLogic::getError());
|
|
|
+ }
|
|
|
+ return $this->success('删除成功', [], 1, 1);
|
|
|
+ }
|
|
|
}
|