- 使用 CI 发布小程序失败,提示 get new ticket fail 是怎么回事?
20003 Error: {"errCode":-1,"errMsg":"get new ticket fail innerCode: -80011"} upload fail: Error: Error: {"errCode":-1,"errMsg":"get new ticket fail innerCode: -80011"} at Object.upload (D:\ajy\applet-dev\applet\node_modules\miniprogram-ci\dist\upload\upload.js:1:3791) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) { code: 20003 }
2020-08-28 - CI报错 get new ticket fail innerCode:-80011?
ci上传代码时,报出如下错误,请问是什么问题。 Error: Error: {"errCode":-1,"errMsg":"get new ticket fail: innerCode: -80011"} at Object.upload (/Users/admin/Desktop/veer-mp-frontend/node_modules/miniprogram-ci/dist/upload/upload.js:1:3785) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Object.preview (/Users/admin/Desktop/veer-mp-frontend/node_modules/miniprogram-ci/dist/upload/preview.js:1:677) { code: 20002 } appid是wxc75f0a2b2511d538
2020-07-25 - 在微信小程序中 实现摇杆组件
[图片] //recker.js let oldStellungDerWippe = ""; Component({ properties: { // 图像大小 size: { type: Number, value: 100, }, coordinates_x: { type: Number, value: 0, }, coordinates_y: { type: Number, value: 0, }, }, data: { x: 0, y: 0, radius: 90, }, methods: { touchMove(e) { const data = this.data; // 触摸时的坐标减去 当前组件在屏幕上的位置(coordinates_x,coordinates_x) // 减去半径 let x = e.touches[0].clientX - data.coordinates_x - data.size / 2; let y = e.touches[0].clientY - data.coordinates_y - data.size / 2; let angle = Math.atan2(y, x); // 计算半径 let radius = Math.sqrt(x * x + y * y); if (radius > data.radius) { x = Math.cos(angle) * data.radius; y = Math.sin(angle) * data.radius; } let sideLength = data.size / 2 / 2 / 2; // console.log("sideLength",sideLength); // 摇杆在中间不做任何操作 if ( !( x <= sideLength && x >= -sideLength && y <= sideLength && y >= -sideLength ) ) { // 竖线 if (x >= -sideLength && x < sideLength) { if (y >= -sideLength) { if (oldStellungDerWippe != "button") { oldStellungDerWippe = "button"; console.log(oldStellungDerWippe); } } else { if (oldStellungDerWippe != "top") { oldStellungDerWippe = "top"; console.log(oldStellungDerWippe); } } } else if (y >= -sideLength && y < sideLength) { // 横线 if (x <= sideLength) { if (oldStellungDerWippe != "left") { oldStellungDerWippe = "left"; console.log(oldStellungDerWippe); } } else { if (oldStellungDerWippe != "right") { oldStellungDerWippe = "right"; console.log(oldStellungDerWippe); } } } } this.setData({ x: x, y: y, }); }, // 手松开回到原点 touchEnd() { this.setData({ x: 0, y: 0, }); }, }, }); //recker.wxml <view class="background"> <view class="container" style="width: {{size}}px; height: {{size}}px;"> <image src="/image/happy.png" class="joystick" catchtouchmove="touchMove" catchtouchend="touchEnd" style="transform: translate({{x}}px, {{y}}px)"></image> </view > </view> //recker.wxss .background { background-color: aqua; width: 200px; height: 200px; } .container { position: relative; /* border-radius: 50%; */ /* padding: 20px; */ } .joystick { position: absolute; top: 50%; left: 50%; width: 50%; height: 50%; /* margin 数值是高度的一半的绝对值 ,如 width 20% margin-top: -25%;*/ margin-top: -25%; margin-left: -25%; border-radius: 50%; } //调用组件 <rocket size="200" coordinates_y=""></rocket>
2023-03-30 - 分享解决:wxlog:Error:set token fail, errCode:4...
分享一下我解决这个ios微信登录问题: wxlog:Error:set token fail, errCode:4, errLog:wx token[] or contextId[(null)] is nil! 如果你项目里有SceneDelegate.m这个文件,请不要在AppDelegate里增加这两个方法,如下图所示:[图片] 只在SceneDelegate里加: - (void)scene:(UIScene *)scene continueUserActivity:(NSUserActivity *)userActivity { [WXApi handleOpenUniversalLink:userActivity delegate:self]; } // 授权后回调也要在这个SceneDelegate里 - (void)onResp:(BaseResp *)resp { // 向微信请求授权后,得到响应结果 if ([resp isKindOfClass:[SendAuthResp class]]) { SendAuthResp *resp2 = (SendAuthResp *)resp; NSString* code = resp2.code; NSLog(@"code:%@",code); } } 以上就是我用opensdk2.0.2遇到问题时解决的方法,搞了两天看了好多文档,才知道原因,这个就是我看了官方文档误解了,把图里框的内容也放AppDelegate里造成重复调用,造成了出错。希望大家看到我的少走我走过的弯路。
2023-03-31