//先获取经纬度 然后再输出
var shop = new AV.Query('shop');
shop.select(['lon_lat']);
shop.equalTo('user_info_id', '123');
shop.first().then(function(shop) {
if (shop != undefined) {
var product = AV.Object.createWithoutData('product', '123');
var point = new AV.GeoPoint(shop.get('lon_lat').latitude, shop.get('lon_lat').longitude);
product.set('lon_lat',point);
product.save();
response.success({
code: 0,
data: shop
});
}
});
先获取经纬度 然后再输出
最新推荐文章于 2021-10-12 18:37:08 发布