Commit 37a6c434 authored by qinhaitao's avatar qinhaitao

feat: 🎸 增加发货状态

parent 09e1077a
...@@ -211,6 +211,11 @@ export declare enum SWICH_TOCK { ...@@ -211,6 +211,11 @@ export declare enum SWICH_TOCK {
LIMIT = 1, LIMIT = 1,
NO_LIMIT = 2 NO_LIMIT = 2
} }
export declare const SHIP_STATUS: {
NO_ADDRESS: number;
NO_SHIP: number;
HAS_SHIP: number;
};
export declare enum STAT_TYPE { export declare enum STAT_TYPE {
CLICK_INVITE = 1, CLICK_INVITE = 1,
CLICK_FOLLOW_TASK = 2 CLICK_FOLLOW_TASK = 2
......
"use strict"; "use strict";
/** @format */ /** @format */
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.STAT_TYPE = exports.SWICH_TOCK = exports.PRIZE_DATA_TYPE = exports.PRIZE_TYPE = exports.TASK_STATUS = exports.TASK_RATE_TYPE = exports.TAOBAO_SUCCESS_ORDER_STATUS = exports.C_APP_NAME = exports.appId = exports.DRAW_STATUS = exports.TBERROR = exports.CODE_TYPES = exports.BusinessError = void 0; exports.STAT_TYPE = exports.SHIP_STATUS = exports.SWICH_TOCK = exports.PRIZE_DATA_TYPE = exports.PRIZE_TYPE = exports.TASK_STATUS = exports.TASK_RATE_TYPE = exports.TAOBAO_SUCCESS_ORDER_STATUS = exports.C_APP_NAME = exports.appId = exports.DRAW_STATUS = exports.TBERROR = exports.CODE_TYPES = exports.BusinessError = void 0;
var sdk_1 = require("./sdk"); var sdk_1 = require("./sdk");
exports.BusinessError = { exports.BusinessError = {
// 更新重试失败(用于并发更新) // 更新重试失败(用于并发更新)
...@@ -158,6 +158,12 @@ var SWICH_TOCK; ...@@ -158,6 +158,12 @@ var SWICH_TOCK;
SWICH_TOCK[SWICH_TOCK["LIMIT"] = 1] = "LIMIT"; SWICH_TOCK[SWICH_TOCK["LIMIT"] = 1] = "LIMIT";
SWICH_TOCK[SWICH_TOCK["NO_LIMIT"] = 2] = "NO_LIMIT"; SWICH_TOCK[SWICH_TOCK["NO_LIMIT"] = 2] = "NO_LIMIT";
})(SWICH_TOCK = exports.SWICH_TOCK || (exports.SWICH_TOCK = {})); })(SWICH_TOCK = exports.SWICH_TOCK || (exports.SWICH_TOCK = {}));
//物流状态
exports.SHIP_STATUS = {
NO_ADDRESS: 1,
NO_SHIP: 2,
HAS_SHIP: 3
};
// 记录数据 // 记录数据
var STAT_TYPE; var STAT_TYPE;
(function (STAT_TYPE) { (function (STAT_TYPE) {
......
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,6BAA0C;AAE7B,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,kBAAkB,EAAE;QAClB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,0BAAM;KACnB;IACD,QAAQ;IACR,iBAAiB,EAAE;QACjB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,gCAAO;KACpB;IACD,QAAQ;IACR,sBAAsB,EAAE;QACtB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,gCAAO;KACpB;IACD,QAAQ;IACR,mBAAmB,EAAE;QACnB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,gCAAO;KACpB;IACD,QAAQ;IACR,aAAa,EAAE;QACb,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,gCAAO;KACpB;IACD,QAAQ;IACR,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;KACpB;IACD,UAAU;IACV,oBAAoB,EAAE;QACpB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,wDAAW;KACxB;IACD,UAAU;IACV,yBAAyB,EAAE;QACzB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,4CAAS;KACtB;IACD,QAAQ;IACR,mBAAmB,EAAE;QACnB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,gCAAO;KACpB;IACD,uBAAuB,EAAE;QACvB,IAAI,EA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AM;IACN,OAAO,EAAE,CAAC;IACV,OAAO;IACP,KAAK,EAAE,CAAC;CACT,CAAA;AAEY,QAAA,KAAK,GAAG,SAAS,CAAA;AAE9B,cAAc;AACD,QAAA,UAAU,GAAW,qBAAmB,aAAO,CAAA;AAE5D,OAAO;AACM,QAAA,2BAA2B,GAAa;IACnD,wBAAwB;IACxB,uBAAuB;IACvB,0BAA0B;IAC1B,oBAAoB;IACpB,gBAAgB;IAChB,qBAAqB;CACtB,CAAA;AAcD,UAAU;AACG,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;IACX,OAAO,EAAE,CAAC;CACX,CAAA;AAED,MAAM;AACO,QAAA,WAAW,GAAG;IACzB,OAAO,EAAE,CAAC;IACV,YAAY,EAAE,CAAC;IACf,IAAI,EAAE,CAAC,CAAC,MAAM;CACf,CAAA;AAED,OAAO;AACM,QAAA,UAAU,GAAG;IACxB,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;CACV,CAAA;AAED,OAAO;AACM,QAAA,eAAe,GAAG;IAC7B,OAAO,EAAE,CAAC;IACV,WAAW,EAAE,CAAC,CAAC,KAAK;CACrB,CAAA;AAED,WAAW;AACX,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,6CAAS,CAAA;IACT,mDAAY,CAAA;AACd,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,OAAO;AACP,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,yDAAgB,CAAA;IAChB,mEAAiB,CAAA;AACnB,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"} {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,6BAA0C;AAE7B,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,kBAAkB,EAAE;QAClB,IA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AE,CAAC;IACV,YAAY,EAAE,CAAC;IACf,IAAI,EAAE,CAAC,CAAC,MAAM;CACf,CAAA;AAED,OAAO;AACM,QAAA,UAAU,GAAG;IACxB,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;CACV,CAAA;AAED,OAAO;AACM,QAAA,eAAe,GAAG;IAC7B,OAAO,EAAE,CAAC;IACV,WAAW,EAAE,CAAC,CAAC,KAAK;CACrB,CAAA;AAED,WAAW;AACX,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,6CAAS,CAAA;IACT,mDAAY,CAAA;AACd,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,MAAM;AACO,QAAA,WAAW,GAAG;IACzB,UAAU,EAAE,CAAC;IACb,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;CACZ,CAAA;AAED,OAAO;AACP,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,yDAAgB,CAAA;IAChB,mEAAiB,CAAA;AACnB,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
\ No newline at end of file \ No newline at end of file
...@@ -32,11 +32,11 @@ export default class AwardsController { ...@@ -32,11 +32,11 @@ export default class AwardsController {
/** /**
* 权益重新领取 * 权益重新领取
*/ */
receiveEnamePrize(context: IContext<IReceiveEnameParams>, {}: {}, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | string[] | object[] | number[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<CodeType | IAwards, true>>; receiveEnamePrize(context: IContext<IReceiveEnameParams>, {}: {}, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | object[] | number[] | string[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<CodeType | IAwards, true>>;
/** /**
* 概率抽奖 * 概率抽奖
*/ */
drawLotteryPrize(context: IContext<IParams>, { userInfo }: IControllerInfos, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | string[] | object[] | number[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<{ drawLotteryPrize(context: IContext<IParams>, { userInfo }: IControllerInfos, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | object[] | number[] | string[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<{
data: { data: {
type: number; type: number;
name: string; name: string;
......
...@@ -168,14 +168,14 @@ var AwardsController = /** @class */ (function () { ...@@ -168,14 +168,14 @@ var AwardsController = /** @class */ (function () {
})]; })];
} }
reduceResult = 1; reduceResult = 1;
if (!(prize.type !== constants_1.PRIZE_TYPE.CREDITS)) return [3 /*break*/, 4]; if (!(prize.type !== constants_1.PRIZE_TYPE.CREDITS && prize.type !== constants_1.PRIZE_TYPE.THANKS)) return [3 /*break*/, 4];
return [4 /*yield*/, awardSer.reduceStock(prize._id)]; return [4 /*yield*/, awardSer.reduceStock(prize._id)];
case 3: case 3:
reduceResult = _e.sent(); reduceResult = _e.sent();
_e.label = 4; _e.label = 4;
case 4: case 4:
// 扣库存失败 // 扣库存失败
if ((_c = reduceResult) === null || _c === void 0 ? void 0 : _c.code) if (((_c = reduceResult) === null || _c === void 0 ? void 0 : _c.code) || !reduceResult)
return [2 /*return*/, sdk_1.resultsModel.error(reduceResult)]; return [2 /*return*/, sdk_1.resultsModel.error(reduceResult)];
type = prize.type, _id = prize._id, ename = prize.ename, image = prize.image, name = prize.name; type = prize.type, _id = prize._id, ename = prize.ename, image = prize.image, name = prize.name;
userNick = userInfo.userNick; userNick = userInfo.userNick;
......
{"version":3,"file":"awards.controller.js","sourceRoot":"","sources":["../../src/controller/awards.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,0CAAkF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AAC;;;;6DAYzB;IAQD;QAHC,uBAAW,CAAC,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QAC5C,6BAAiB;QACjB,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;4DA8DzB;IACH,uBAAC;CAAA,AA1ID,IA0IC;kBA1IoB,gBAAgB"}
\ No newline at end of file \ No newline at end of file
...@@ -18,5 +18,5 @@ export default class StatController { ...@@ -18,5 +18,5 @@ export default class StatController {
/** /**
* 统计数据 * 统计数据
*/ */
getStats(context: IContext<IGetStatsParams>): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | string[] | object[] | number[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<any, true>>; getStats(context: IContext<IGetStatsParams>): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | object[] | number[] | string[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<any, true>>;
} }
...@@ -15,8 +15,8 @@ declare const _default: { ...@@ -15,8 +15,8 @@ declare const _default: {
list: IAwards[]; list: IAwards[];
}>>; }>>;
receiveObjectPrize: (context: IContext<import("./controller/awards.controller").IReceiveOjectParams>, {}: {}, [awardSer]: [import("./service").AwardsService]) => Promise<IResult<boolean>>; receiveObjectPrize: (context: IContext<import("./controller/awards.controller").IReceiveOjectParams>, {}: {}, [awardSer]: [import("./service").AwardsService]) => Promise<IResult<boolean>>;
receiveEnamePrize: (context: IContext<import("./controller/awards.controller").IReceiveEnameParams>, {}: {}, [awardSer]: [import("./service").AwardsService]) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | string[] | object[] | number[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<import("taobao-mini-sdk/lib/utils/codetypes").CodeType | IAwards, true>>; receiveEnamePrize: (context: IContext<import("./controller/awards.controller").IReceiveEnameParams>, {}: {}, [awardSer]: [import("./service").AwardsService]) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | object[] | number[] | string[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<import("taobao-mini-sdk/lib/utils/codetypes").CodeType | IAwards, true>>;
doHelp: (context: IContext<IParams>, { userInfo, vipInfo, activityInfo }: IControllerInfos, [userService, taskService, accessService]: [import("./service/user.service").default, import("./service").TaskService, import("./service").AccessService]) => Promise<IResult<boolean>>; doHelp: (context: IContext<IParams>, { userInfo, vipInfo, activityInfo }: IControllerInfos, [userService, taskService, accessService]: [import("./service/user.service").default, import("./service").TaskService, import("./service").AccessService]) => Promise<IResult<boolean>>;
getStats: (context: IContext<import("./controller/stat.controller").IGetStatsParams>) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | string[] | object[] | number[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<any, true>>; getStats: (context: IContext<import("./controller/stat.controller").IGetStatsParams>) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result<string | boolean | object | object[] | number[] | string[], false> | import("taobao-mini-sdk/lib/utils/resultmodel").Result<any, true>>;
}; };
export default _default; export default _default;
...@@ -134,7 +134,7 @@ var AwardsService = /** @class */ (function (_super) { ...@@ -134,7 +134,7 @@ var AwardsService = /** @class */ (function (_super) {
switch (_a.label) { switch (_a.label) {
case 0: case 0:
_a.trys.push([0, 2, , 3]); _a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.awardsdao.insertOne(__assign(__assign({}, award), { createTime: Date.now(), updateTime: Date.now() }))]; return [4 /*yield*/, this.awardsdao.insertOne(__assign(__assign({}, award), { shipStatus: (award === null || award === void 0 ? void 0 : award.type) === constants_1.PRIZE_TYPE.OBJECT ? constants_1.SHIP_STATUS.NO_ADDRESS : '', createTime: Date.now(), updateTime: Date.now() }))];
case 1: return [2 /*return*/, _a.sent()]; case 1: return [2 /*return*/, _a.sent()];
case 2: case 2:
e_2 = _a.sent(); e_2 = _a.sent();
...@@ -285,6 +285,7 @@ var AwardsService = /** @class */ (function (_super) { ...@@ -285,6 +285,7 @@ var AwardsService = /** @class */ (function (_super) {
receiveName: name, receiveName: name,
phone: phone, phone: phone,
drawStatus: constants_1.DRAW_STATUS.SUCCESS, drawStatus: constants_1.DRAW_STATUS.SUCCESS,
shipStatus: constants_1.SHIP_STATUS.NO_SHIP,
province: province, province: province,
city: city, city: city,
area: area, area: area,
......
{"version":3,"file":"awards.service.js","sourceRoot":"","sources":["../../src/service/awards.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAgC;AAChC,+CAAwC;AACxC,0CAA8G;AAC9G,4BAA4D;AAC5D,kCAA2E;AAG3E;IAA2C,iCAAW;IAGpD,uBAAY,OAA0B;QAAtC,YACE,kBAAM,OAAO,CAAC,SAGf;QAFC,KAAI,CAAC,SAAS,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,mBAAc,CAAC,CAAA;QACrD,KAAI,CAAC,gBAAgB,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,yBAAoB,CAAC,CAAA;;IACpE,CAAC;IAED,uBAAuB;IACjB,mCAAW,GAAjB,UAAkB,GAAW;;;;;4BACd,qBAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAiB,EAAE,GAAG,KAAA,EAAE,YAAY,gBAAwB,EAAE,CAAC;wBAC/G,QAAQ;sBADuG;;wBAA3G,MAAM,GAAG,SAAkG;wBAC/G,QAAQ;wBACR,IAAI,CAAC,MAAM,EAAE;4BACX,sBAAO,sBAAU,CAAC,cAAc,EAAA;yBACjC;wBACK,WAAW,GAAsB,MAAM,YAA5B,EAAE,KAAK,GAAe,MAAM,MAArB,EAAE,QAAQ,GAAK,MAAM,SAAX,CAAW;wBAC7C,SAAS;wBACT,IAAI,WAAW,KAAK,sBAAU,CAAC,QAAQ,EAAE;4BACvC,sBAAO,CAAC,EAAA;yBACT;wBACD,QAAQ;wBACR,IAAI,QAAQ,IAAI,KAAK,EAAE;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,AA5RD,CAA2C,sBAAW,GA4RrD"}
\ No newline at end of file \ No newline at end of file
...@@ -211,7 +211,7 @@ var TaskService = /** @class */ (function (_super) { ...@@ -211,7 +211,7 @@ var TaskService = /** @class */ (function (_super) {
}; };
// 初始化签到任务 // 初始化签到任务
TaskService.prototype.initSignTask = function (userInfo, tasks) { TaskService.prototype.initSignTask = function (userInfo, tasks) {
var value = tasks.sign.value; var _a = tasks.sign, value = _a.value, times = _a.times;
var remainTimes = userInfo.remainTimes; var remainTimes = userInfo.remainTimes;
var completeList = this.getCompleteTaskByUserTaskInfo('sign', userInfo); var completeList = this.getCompleteTaskByUserTaskInfo('sign', userInfo);
var todayCompleteTimes = this.getTodayCompleteTask('sign', userInfo).todayCompleteTimes; var todayCompleteTimes = this.getTodayCompleteTask('sign', userInfo).todayCompleteTimes;
...@@ -219,12 +219,12 @@ var TaskService = /** @class */ (function (_super) { ...@@ -219,12 +219,12 @@ var TaskService = /** @class */ (function (_super) {
taskType: "sign", taskType: "sign",
title: "\u6BCF\u65E5\u7B7E\u5230", title: "\u6BCF\u65E5\u7B7E\u5230",
rewards: value, rewards: value,
times: 1, times: times,
taskRateType: constants_1.TASK_RATE_TYPE.EVERYDAY, taskRateType: constants_1.TASK_RATE_TYPE.EVERYDAY,
waitReceive: remainTimes.sign, waitReceive: remainTimes.sign,
completeTimes: completeList.length, completeTimes: completeList.length,
todayCompleteTimes: todayCompleteTimes, todayCompleteTimes: todayCompleteTimes,
status: this.setTaskStatus(userInfo, 'sign', constants_1.TASK_RATE_TYPE.EVERYDAY) status: this.setTaskStatus(userInfo, 'sign', constants_1.TASK_RATE_TYPE.EVERYDAY, times)
}; };
}; };
// 积分兑换 /固定为每日限制 // 积分兑换 /固定为每日限制
...@@ -400,7 +400,7 @@ var TaskService = /** @class */ (function (_super) { ...@@ -400,7 +400,7 @@ var TaskService = /** @class */ (function (_super) {
var completeTimes = this.getCompleteTaskByUserTaskInfo(taskType, useInfo).length; var completeTimes = this.getCompleteTaskByUserTaskInfo(taskType, useInfo).length;
switch (taskRateType) { switch (taskRateType) {
case constants_1.TASK_RATE_TYPE.FOREVER: case constants_1.TASK_RATE_TYPE.FOREVER:
return completeTimes > 0 ? constants_1.TASK_STATUS.DONE : constants_1.TASK_STATUS.WAIT_DO; return completeTimes > 0 && completeTimes >= limitTimesEveryday ? constants_1.TASK_STATUS.DONE : constants_1.TASK_STATUS.WAIT_DO;
break; break;
case constants_1.TASK_RATE_TYPE.EVERYDAY: case constants_1.TASK_RATE_TYPE.EVERYDAY:
return todayCompleteTimes >= limitTimesEveryday ? constants_1.TASK_STATUS.DONE : constants_1.TASK_STATUS.WAIT_DO; return todayCompleteTimes >= limitTimesEveryday ? constants_1.TASK_STATUS.DONE : constants_1.TASK_STATUS.WAIT_DO;
......
{"version":3,"file":"task.service.js","sourceRoot":"","sources":["../../src/service/task.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iCAA8B;AAC9B,+CAAwC;AACxC,kCAA6D;AAC7D,0CAA0D;AAe1D;IAAyC,+BAAW;IAClD,qBAAY,OAA0B;eACpC,kBAAM,OAAO,CAAC;IAChB,CAAC;IAED,iCAAW,GAAX,UAAY,QAAmB,EAAE,OAAiB,EAAE,KAAa;QACvD,IAAA,WAAW,GAAK,QAAQ,YAAb,CAAa;QAEhC,SAAS;QAEG,IAAA,KAAK,GACb,KAAK,aADQ,CACR;QAET,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,0BAAM;YACb,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,0BAAc,CAAC,OAAO;YACpC,WAAW,EAAE,WAAW,CAAC,MAAM;YAC/B,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,0BAAc,CAAC,OAAO,CAAC;SAC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I,CAAC,WAAW,EAAE,EAAA;4BAA/B,sBAAO,SAAwB,EAAA;;;;KAChC;IACH,kBAAC;AAAD,CAAC,AAheD,CAAyC,sBAAW,GAgenD"}
\ No newline at end of file \ No newline at end of file
...@@ -4,11 +4,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); ...@@ -4,11 +4,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.formatVipCbUrl = exports.isUseVipMock = void 0; exports.formatVipCbUrl = exports.isUseVipMock = void 0;
var index_1 = require("../../config/index"); var index_1 = require("../../config/index");
/** @format */ /** @format */
// 测试环境 duib2账户mock数据 // 测试环境 duib2账户mock数据 或者本地
exports.isUseVipMock = function (context, userNick) { exports.isUseVipMock = function (context, userNick) {
var isTestEnv = context.env === 'test'; var isTestEnv = context.env === 'test';
var isMockEnv = context.env === 'mock';
var isDuibaAccount = userNick.startsWith('duiba2'); var isDuibaAccount = userNick.startsWith('duiba2');
return isTestEnv && isDuibaAccount; return (isTestEnv && isDuibaAccount) || isMockEnv;
}; };
// 格式化Vip回调地址 // 格式化Vip回调地址
exports.formatVipCbUrl = function (context) { exports.formatVipCbUrl = function (context) {
......
{"version":3,"file":"vip.js","sourceRoot":"","sources":["../../../src/utils/package/vip.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,4CAA8C;AAC9C,cAAc;AAEd,qBAAqB;AACR,QAAA,YAAY,GAAG,UAAC,OAA0B,EAAE,QAAgB;IACvE,IAAM,SAAS,GAAG,OAAO,CAAC,GAAG,KAAK,MAAM,CAAA;IACxC,IAAM,cAAc,GAAG,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;IAEpD,OAAO,SAAS,IAAI,cAAc,CAAA;AACpC,CAAC,CAAA;AAED,aAAa;AACA,QAAA,cAAc,GAAG,UAAC,OAA0B;IACjD,IAAA,KAAgC,OAAO,CAAC,IAAI,EAA1C,UAAU,gBAAA,EAAE,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAiB,CAAA;IAC5C,IAAA,cAAc,GAAK,iBAAS,CAAC,OAAO,CAAC,eAAvB,CAAuB;IAE3C,SAAS;IACT,IAAI,KAAK,GAAG,gBAAc,UAAU,kBAAa,QAAU,CAAA;IAC3D,IAAI,WAAW,GAAc,cAAc,eAAU,kBAAkB,CAAC,KAAK,CAAG,CAAA;IAChF,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA"} {"version":3,"file":"vip.js","sourceRoot":"","sources":["../../../src/utils/package/vip.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,4CAA8C;AAC9C,cAAc;AAEd,2BAA2B;AACd,QAAA,YAAY,GAAG,UAAC,OAA0B,EAAE,QAAgB;IACvE,IAAM,SAAS,GAAG,OAAO,CAAC,GAAG,KAAK,MAAM,CAAA;IACxC,IAAM,SAAS,GAAG,OAAO,CAAC,GAAG,KAAK,MAAM,CAAA;IACxC,IAAM,cAAc,GAAG,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;IAEpD,OAAO,CAAC,SAAS,IAAI,cAAc,CAAC,IAAI,SAAS,CAAA;AACnD,CAAC,CAAA;AAED,aAAa;AACA,QAAA,cAAc,GAAG,UAAC,OAA0B;IACjD,IAAA,KAAgC,OAAO,CAAC,IAAI,EAA1C,UAAU,gBAAA,EAAE,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAiB,CAAA;IAC5C,IAAA,cAAc,GAAK,iBAAS,CAAC,OAAO,CAAC,eAAvB,CAAuB;IAE3C,SAAS;IACT,IAAI,KAAK,GAAG,gBAAc,UAAU,kBAAa,QAAU,CAAA;IAC3D,IAAI,WAAW,GAAc,cAAc,eAAU,kBAAkB,CAAC,KAAK,CAAG,CAAA;IAChF,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA"}
\ No newline at end of file \ No newline at end of file
...@@ -180,6 +180,13 @@ export enum SWICH_TOCK { ...@@ -180,6 +180,13 @@ export enum SWICH_TOCK {
NO_LIMIT = 2 NO_LIMIT = 2
} }
//物流状态
export const SHIP_STATUS = {
NO_ADDRESS: 1,
NO_SHIP: 2,
HAS_SHIP: 3
}
// 记录数据 // 记录数据
export enum STAT_TYPE { export enum STAT_TYPE {
CLICK_INVITE = 1, CLICK_INVITE = 1,
......
...@@ -6,7 +6,15 @@ ...@@ -6,7 +6,15 @@
import { BaseDao } from '../sdk' import { BaseDao } from '../sdk'
import UserService from './user.service' import UserService from './user.service'
import { CODE_TYPES, DRAW_STATUS, PRIZE_TYPE, ACTIVITY_STATUS, DELETE_STATUS, SWICH_TOCK } from '../constants' import {
CODE_TYPES,
DRAW_STATUS,
PRIZE_TYPE,
ACTIVITY_STATUS,
DELETE_STATUS,
SWICH_TOCK,
SHIP_STATUS
} from '../constants'
import { AWARDS_DB_NAME, PRIZE_CONFIG_DB_NAME } from '../db' import { AWARDS_DB_NAME, PRIZE_CONFIG_DB_NAME } from '../db'
import { sendTBAward, getSellerSession, rand, signFigures } from '../utils' import { sendTBAward, getSellerSession, rand, signFigures } from '../utils'
import { CodeType } from 'taobao-mini-sdk/lib/utils/codetypes' import { CodeType } from 'taobao-mini-sdk/lib/utils/codetypes'
...@@ -62,6 +70,7 @@ export default class AwardsService extends UserService { ...@@ -62,6 +70,7 @@ export default class AwardsService extends UserService {
try { try {
return await this.awardsdao.insertOne({ return await this.awardsdao.insertOne({
...award, ...award,
shipStatus: award?.type === PRIZE_TYPE.OBJECT ? SHIP_STATUS.NO_ADDRESS : '',
createTime: Date.now(), createTime: Date.now(),
updateTime: Date.now() updateTime: Date.now()
}) })
...@@ -207,6 +216,7 @@ export default class AwardsService extends UserService { ...@@ -207,6 +216,7 @@ export default class AwardsService extends UserService {
receiveName: name, receiveName: name,
phone, phone,
drawStatus: DRAW_STATUS.SUCCESS, drawStatus: DRAW_STATUS.SUCCESS,
shipStatus: SHIP_STATUS.NO_SHIP,
province, province,
city, city,
area, area,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment