ZeeHG / mitichat_h5

GNU General Public License v3.0
1 stars 0 forks source link

createLocationMessage 位置报错 #2

Open gsn0310 opened 4 days ago

gsn0310 commented 4 days ago

const options = { name: t('myLocation'), latng: ${center[1]},${center[0]}, addr: data.regeocode.formatted_address, city: data.regeocode.addressComponent.city, module: "locationPicker", latitude: center[1], longitude: center[0], url: https://restapi.amap.com/v3/staticmap?size=600*300&markers=-1,https://cache.amap.com/lbs/static/cuntom_marker1.png,0:${center[0]},${center[1]}&key=${process.env.AMAP_KEY} } IMSDK.createLocationMessage({ description: JSON.stringify(options), longitude: center[0], latitude: center[1], }).then(({ data }) => { console.log('12112',data) sendMessage({ message: data as ExMessageItem }); router.back(); }) 报错信息如下: Uncaught (in promise) {"operationID": "13d971c0-c3e8-41ab-b2d5-42b988f74247", "event": "Createlocationmessage ", "errCode": 100, "errMsg": "==> github.com/openimsdk/openim-sdk-core/v3/wasm/event_listener.(*ReflectCall).ErrHandle()@276: : input args type not support:14"} 这是什么原因引起的

shaoyuchao commented 3 days ago

@ZeeHG

gsn0310 commented 10 hours ago

@ZeeHG 请问这是什么原因