dataLists(new OpurchaseGoodsOfferList()); } public function offer(){ if(!$this->request->userInfo['supplier']) return $this->fail('非供应商用户不能报价'); $params = (new OpurchaseGoodsOfferValidate())->post()->goCheck('offer'); $result = OpurchaseGoodsOfferLogic::offer($params); if (true === $result) { return $this->success('报价成功', [], 1, 1); } return $this->fail(OpurchaseGoodsOfferLogic::getError()); } }