以下是我上传的3个小程序代码,第一个报47001错误
第二个说已有代码审核,说明代码上传是成功的
第三个说小程序没完善,也是成功上传了的
我想问的是,为什么第一个会报47001错误?我是用同样的代码执行上传的
附代码:
para = { 'template_id' :template_id, 'user_version' : '1.0.0' , 'user_desc' :u 'abc' } url = 'https://api.weixin.qq.com/wxa/commit?access_token=' + token #上传代码到小程序 ext_json = { 'extAppid' :appid, "window" :{ "navigationBarTextStyle" : app_color, "navigationBarTitleText" : app_title, "navigationBarBackgroundColor" : app_bg } } para[ 'ext_json' ] = json.dumps(ext_json,json.dumps,ensure_ascii = False ,indent = 2 ) para = json.dumps(para,ensure_ascii = False ) para = para.encode( 'utf-8' ) req = urllib2.Request(url = url,data = para) res = urllib2.urlopen(req) print res.read() |
设置小程序服务器域名:https://api.weixin.qq.com/wxa/modify_domain?access_token=TOKEN我直接用事例里的参数都报47001 {
“action”:“add”,
“requestdomain”:["<https://www.qq.com>>>","<<<FLOATING LINK: https://www.qq.com>"],
“wsrequestdomain”:[“wss://www.qq.com”,“wss://www.qq.com”],
“uploaddomain”:["<https://www.qq.com>>>","<<<FLOATING LINK: https://www.qq.com>"],
“downloaddomain”:["<https://www.qq.com>>>","<<<FLOATING LINK: https://www.qq.com>"],
}