咨询了微信的技术支持,说查询在服务器没有请求到接口,在本地请求到了接口。代码是一样的,为什么本地能请求到,服务器请求不到呢?
小程序本地调用refund接口返回正确,部署服务器后就返回空数据?同样的接口和输入参数,在本地返回这个:(result_code返回Fail,是因为在本地调试,没有配置微信返回网址) {return_code='SUCCESS', return_msg='OK', result_code='FAIL', err_code='INVALID_REQUEST', err_code_des='订单已全额退款', appid='此处id是正确的,不便展示', mch_id='此处id是正确的,不变展示', device_info='null', nonce_str='此处有数据,隐藏', sign='此处有数据,隐藏', transaction_id='null', out_trade_no='null', out_refund_no='null', refund_id='null', refund_channel='null', refund_fee='null', settlement_refund_fee='null', total_fee='null', settlement_total_fee='null', fee_type='null', cash_fee='null', cash_refund_fee='null', refund_status='null'} 部署服务器后就返回下面这个,调试看了下,发起请求返回的xml就是空的。 {return_code='null', return_msg='null', result_code='null', err_code='null', err_code_des='null', appid='null', mch_id='null', device_info='null', nonce_str='null', sign='null', transaction_id='null', out_trade_no='null', out_refund_no='null', refund_id='null', refund_channel='null', refund_fee='null', settlement_refund_fee='null', total_fee='null', settlement_total_fee='null', fee_type='null', cash_fee='null', cash_refund_fee='null', refund_status='null'} [图片]
2021-10-12