dataLists(new VerificationLists()); } /** * @notes 提货核销 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author ljj * @date 2021/8/27 5:38 下午 */ public function verification() { $params = (new VerificationValidate())->goCheck('verification',['user_id'=>$this->userId]); $result = (new VerificationLogic())->verification($params); // if (isset($result['code']) && $result['code'] == 10) { // return $this->success($result['msg'],[],$result['code']); // } return $this->success('', $result); } /** * @notes 确认提货 * @return \think\response\Json * @author ljj * @date 2021/8/27 6:05 下午 */ public function verificationConfirm() { $params = (new VerificationValidate())->post()->goCheck('verificationConfirm',['user_id'=>$this->userId]); $result = (new VerificationLogic())->verificationConfirm($params); if (false === $result) { return $this->fail(VerificationLogic::getError()); } return $this->success('提货成功',[],1,1); } }