post()->goCheck('register'); $result = FirmLogic::register($params,$this->userId); if (true === $result) { return $this->success('已提交', [], 1, 1); } return $this->fail(FirmLogic::getError()); } public function orderLists() { return $this->dataLists(new FirmOrderLists()); } public function submitOrder() { } public function goodLists() { return $this->dataLists(new FirmGoodLists()); } public function submitGood() { $params = (new GoodsValidate())->post()->goCheck('add'); $result = GoodsLogic::sync($params,$this->userId); if (true === $result) { return $this->success('已提交', [], 1, 1); } return $this->fail(FirmLogic::getError()); } }