uni-admin 进行数据修改,修改之前的数据是没有图片的,这里加上了图片,在确认的时候出现了错误
- 下面是我的请求参数
params: "{\"functionTarget\":\"DCloud-clientDB\",\"functionArgs\":{\"command\":{\"$db\":[{\"$method\":\"collection\",\"$param\":[\"opendb-mall-goods\"]},{\"$method\":\"doc\",\"$param\":[\"62b423250d082200010da68e\"]},{\"$method\":\"update\",\"$param\":[{\"category_id\":\"62b405b1f17d0200017ca616\",\"price\":5000000,\"original_price\":6000000,\"brokerage_price\":5,\"keywords\":\"小米\",\"goods_desc\":\"\",\"goods_thumb\":{\"extname\":\"jpg\",\"fileType\":\"image\",\"image\":{\"width\":220,\"height\":220,\"location\":\"blob:http://localhost:8080/ac7309b2-8e54-4f6a-b728-2bbc12fe15da\"},\"name\":\"bc0200a21ea5ab66.jpg\",\"path\":\"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-e7c3bbf2-5150-4904-87d0-6a6e96203857/b8ac5054-f77c-4508-af47-1c8aa504c3c7.jpg\",\"size\":14751,\"fileID\":\"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-e7c3bbf2-5150-4904-87d0-6a6e96203857/b8ac5054-f77c-4508-af47-1c8aa504c3c7.jpg\",\"url\":\"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-e7c3bbf2-5150-4904-87d0-6a6e96203857/b8ac5054-f77c-4508-af47-1c8aa504c3c7.jpg\"},\"goods_banner_imgs\":[],\"seller_note\":\"\",\"is_sticky\":true,\"status\":0,\"level\":1}]}]},\"clientInfo\":{\"PLATFORM\":\"web\",\"OS\":\"windows\",\"APPID\":\"__UNI__8E0D42D\",\"DEVICEID\":\"16353849015333371671\",\"SDKVersion\":\"\",\"appId\":\"__UNI__8E0D42D\",\"appLanguage\":\"zh-Hans\",\"appName\":\"Seasons-Admin\",\"appVersion\":\"1.0.0\",\"appVersionCode\":\"100\",\"browserName\":\"chrome\",\"browserVersion\":\"96.0.4664.45\",\"deviceId\":\"16353849015333371671\",\"deviceModel\":\"PC\",\"deviceOrientation\":\"portrait\",\"devicePixelRatio\":1.100000023841858,\"deviceType\":\"pc\",\"hostLanguage\":\"zh-CN\",\"hostName\":\"chrome\",\"hostVersion\":\"96.0.4664.45\",\"language\":\"zh-CN\",\"model\":\"PC\",\"osName\":\"windows\",\"osVersion\":\"10 x64\",\"pixelRatio\":1.100000023841858,\"platform\":\"windows\",\"safeArea\":{\"left\":0,\"right\":1745,\"top\":0,\"bottom\":852,\"width\":1745,\"height\":852},\"safeAreaInsets\":{\"top\":0,\"right\":0,\"bottom\":0,\"left\":0},\"screenHeight\":1080,\"screenWidth\":1920,\"statusBarHeight\":0,\"system\":\"Windows 10 x64\",\"ua\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36\",\"uniCompileVersion\":\"3.4.15\",\"uniPlatform\":\"web\",\"uniRuntimeVersion\":\"3.4.15\",\"version\":\"\",\"windowBottom\":0,\"windowHeight\":792,\"windowTop\":60,\"windowWidth\":1745,\"locale\":\"zh-Hans\",\"LOCALE\":\"zh-Hans\"},\"uniIdToken\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2MjgwYzJiN2Y3N2RkYTAwMDEzYzI2NmUiLCJyb2xlIjpbImFkbWluIl0sInBlcm1pc3Npb24iOltdLCJpYXQiOjE2NTYwMzMyNTksImV4cCI6MTY1NjA0MDQ1OX0.nc8xRqBrPpPnTVbu9p6Qf0ic28Em5wZ5oepm7jKclS0\"}}"
逍涯
这个问题好久了好久了好久了,希望官方能重视啊
2022-09-09 10:17