request->getMore([ ['status', ''], ['real_name', ''], ['is_del', ''], ['data', '', '', 'time'], ['type', ''], ['pay_type', ''], ['order', ''], ['field_key', ''], ['supplier_id', ''] ]); if ($where['supplier_id'] < 1) { $where['supplier_id'] = -1; } $where['type'] = trim($where['type']); $where['is_system_del'] = 0; $where['store_id'] = 0; $where['type'] = trim($where['type'], ' '); return $this->success($this->services->getOrderList($where, ['*'], ['split' => function ($query) { $query->field('id,pid'); }, 'pink', 'invoice', 'supplier'])); } /** * 提醒发货 * @param $id * @return mixed */ public function deliverRemind(int $supplierId, int $id) { if (!$supplierId || !$id) return $this->fail('参数异常'); /** @var SupplierOrderServices $supplierOrderServices */ $supplierOrderServices = app()->make(SupplierOrderServices::class); $supplierOrderServices->deliverRemind($supplierId, $id); return $this->success('提醒成功'); } }