请问微信小程序里面如何发送短信呢?这样写有问题吗?
wx.request({
url: 'https://api.sms.jpush.cn/v1/codes',
method:'post',
header: {
'Content-Type': 'json',
'Authorization': sgin
},
data:{
mobile:phoneInValue,
temp_id:1
},
success:res => {
console.log(res)
}
})