unicom-task icon indicating copy to clipboard operation
unicom-task copied to clipboard

[天天抽奖]:错误,原因为:'Rsptype'

Open jianrry opened this issue 4 years ago • 3 comments

Traceback (most recent call last):

  File "/var/user/index.py", line 114, in luckDraw_task

    if res['Rsptype'] == '6666':

KeyError: 'Rsptype'

我在config.json中删掉了一行

 "lotteryNum": "抽奖次数(选填,不填请删除此行)",

不知道是不是这一行导致的

jianrry avatar Jun 25 '21 11:06 jianrry

Traceback (most recent call last):

  File "/var/user/index.py", line 114, in luckDraw_task

    if res['Rsptype'] == '6666':

KeyError: 'Rsptype'

我在config.json中删掉了一行

 "lotteryNum": "抽奖次数(选填,不填请删除此行)",

不知道是不是这一行导致的

是云函数还是docker?

srcrs avatar Jun 25 '21 13:06 srcrs

Traceback (most recent call last):

  File "/var/user/index.py", line 114, in luckDraw_task

    if res['Rsptype'] == '6666':

KeyError: 'Rsptype'

我在config.json中删掉了一行

 "lotteryNum": "抽奖次数(选填,不填请删除此行)",

不知道是不是这一行导致的

是云函数还是docker?

腾讯云函数

jianrry avatar Jun 27 '21 07:06 jianrry

我也出现这个问题,云函数,配置只保留了username,password,appId,email

powerAn2020 avatar Jun 29 '21 06:06 powerAn2020