request->post(); (new LocalStoreGoodsValidate())->goCheck(); $result = LocalStoreGoodsLogic::addGoods($form, $this->user_id); if ($result === false) { $error = LocalStoreGoodsLogic::getError() ?: '提交失败'; return JsonServer::error($error); } return JsonServer::success('提交成功', [], 1, 1); } }