dataLists(new IntegralOrderLists()); } /** * @notes 兑换订单详情 * @return \think\response\Json * @author ljj * @date 2022/3/31 11:23 上午 */ public function detail() { $params = (new IntegralOrderValidate())->goCheck('detail'); $result = (new IntegralOrderLogic())->detail($params['id']); return $this->success('获取成功', $result); } /** * @notes 发货 * @return \think\response\Json * @author ljj * @date 2022/3/31 2:29 下午 */ public function delivery() { $params = (new IntegralOrderValidate())->post()->goCheck('delivery', ['admin_id' => $this->adminId]); $result = (new IntegralOrderLogic())->delivery($params); if (true !== $result) { return $this->fail(IntegralOrderLogic::getError()); } return $this->success('发货成功',[],1,1); } /** * @notes 发货信息 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author ljj * @date 2022/3/31 2:37 下午 */ public function deliveryInfo() { $params = (new IntegralOrderValidate())->goCheck('DeliveryInfo'); $result = (new IntegralOrderLogic())->deliveryInfo($params); return $this->success('',$result); } /** * @notes 确认收货 * @return \think\response\Json * @author ljj * @date 2022/3/31 4:39 下午 */ public function confirm() { $params = (new IntegralOrderValidate())->post()->goCheck('confirm', ['admin_id' => $this->adminId]); (new IntegralOrderLogic())->confirm($params); return $this->success('操作成功',[],1,1); } /** * @notes 物流查询 * @return \think\response\Json * @author 段誉 * @date 2022/4/1 14:05 */ public function logistics() { $params = (new IntegralOrderValidate())->goCheck('logistics'); $result = (new IntegralOrderLogic())->logistics($params); return $this->success('', $result); } /** * @notes 取消订单 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author 段誉 * @date 2022/4/1 15:41 */ public function cancel() { $params = (new IntegralOrderValidate())->post()->goCheck('cancel', ['admin_id' => $this->adminId]); $result = (new IntegralOrderLogic())->cancel($params['id']); if (false === $result) { return $this->fail(IntegralOrderLogic::getError()); } return $this->success('取消成功', [], 1, 1); } }