时间:2019-05-07 来源:小程序工厂
你在这里面把res 打印出来呢。应该是报错了。
怎么打印。。。在模拟器上运行正常,打印出来的都是正常数据 数据如下:
{"status":0,"message":"query ok","request_id":"97bc712e-dcf4-11e8-8fcd-6c92bf1a7ce7","result":{"location":{"lat":39.5228,"lng":116.71051},"address":"河北省廊坊市广阳区康宁街2号","formatted_addresses":{"recommend":"明珠美食城廊坊市广阳区委(康宁道北)","rough":"明珠美食城廊坊市广阳区委(康宁道北)"},"address_component":{"nation":"中国","province":"河北省","city":"廊坊市","district":"广阳区","street":"康宁街","street_number":"康宁街2号"},"ad_info":{"nation_code":"156","adcode":"131003","city_code":"156131000","name":"中国,河北省,廊坊市,广阳区","location":{"lat":39.5228,"lng":116.71051},"nation":"中国","province":"河北省","city":"廊坊市","district":"广阳区"},"address_reference":{"business_area":{"id":"8372727736878567988","title":"明珠美食城","location":{"lat":39.5228,"lng":116.71051},"_distance":0,"_dir_desc":"内"},"famous_area":{"id":"8372727736878567988","title":"明珠美食城","location":{"lat":39.5228,"lng":116.71051},"_distance":0,"_dir_desc":"内"},"crossroad":{"id":"2257842","title":"新华路/康宁道(路口)","location":{"lat":39.522442,"lng":116.708138},"_distance":202.1,"_dir_desc":"东"},"town":{"id":"131003003","title":"解放道街道","location":{"lat":39.5228,"lng":116.71051},"_distance":0,"_dir_desc":"内"},"street_number":{"id":"7256170021335005277","title":"康宁街2号","location":{"lat":39.5228,"lng":116.71051},"_distance":0,"_dir_desc":""},"street":{"id":"9064187769210129302","title":"康宁道","location":{"lat":39.522659,"lng":116.710533},"_distance":10.2,"_dir_desc":"北"},"landmark_l2":{"id":"11121266031923787995","title":"廊坊市广阳区委","location":{"lat":39.5228,"lng":116.71051},"_distance":0,"_dir_desc":""}}}}
在手机上开调试模式运行也是正常的,调试模式关了就GG了。。。怎么打印出来错误信息。。。。。
用那个真机测试,然后看有没有进fail呢?
没有,直接进 complete
刚才官方给我回复不支持了,应该是微信小程序隐私之类的问题不支持了,直接从后台调吧
安全域名没加
大哥,安全域名是哪一个。。。。我才第三天接触微信小程序,不太懂。。。。。我的配置是这样子的。。。。
不知道官方为啥回复不支持,我之前做地图就是这么搞得,可能有什么新规定吧。一般需要开调试的问题都是检查域名配置就好了