|
|
@@ -944,7 +944,7 @@ async function checkSignIn(loginInfo, signActInfo){
|
|
|
}
|
|
|
}
|
|
|
if(!hasSignInToday){
|
|
|
- const couponList = await checkSinginReward(signActInfo, session, txcode);
|
|
|
+ const couponList = await checkSigninReward(signActInfo, session, txcode);
|
|
|
if(couponList && couponList.length > 0){
|
|
|
const result = await getSignInReward(signActInfo, couponList[0], 'A3341C120');
|
|
|
return result;
|
|
|
@@ -1043,7 +1043,7 @@ async function refreshLogin(loginInfo) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-async function checkSinginReward(signActInfo,session,txcode) {
|
|
|
+async function checkSigninReward(signActInfo,session,txcode) {
|
|
|
let options = {
|
|
|
url: `https://yunbusiness.ccb.com/clp_coupon/txCtrl?txcode=${txcode}`,
|
|
|
headers: {
|
|
|
@@ -1056,7 +1056,7 @@ async function checkSinginReward(signActInfo,session,txcode) {
|
|
|
},
|
|
|
body: `{"ACT_ID":"${signActInfo.ACT_ID}","REGION_CODE":"${signActInfo.REGION_CODE}","chnlType":"${signActInfo.chnlType}","regionCode":"${signActInfo.regionCode}"}`
|
|
|
};
|
|
|
- lk.log("#####checkSinginReward#####");
|
|
|
+ lk.log("#####checkSigninReward#####");
|
|
|
return new Promise(resolve => {
|
|
|
lk.post(options, async (err, resp, data) => {
|
|
|
let couponList = [];
|
|
|
@@ -1067,7 +1067,7 @@ async function checkSinginReward(signActInfo,session,txcode) {
|
|
|
if (ret.errCode == 0) {
|
|
|
lk.log(data);
|
|
|
if (ret?.data?.IS_AWARD == 1) {
|
|
|
- const GIFT_BAG = ret?.data?.GIFT_BAG;
|
|
|
+ let GIFT_BAG = ret?.data?.GIFT_BAG;
|
|
|
GIFT_BAG = GIFT_BAG || [];
|
|
|
let otherList = [];
|
|
|
GIFT_BAG.forEach(item => {
|