Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinhaitao
taobao-mini-template
Commits
2d11d900
Commit
2d11d900
authored
Oct 14, 2020
by
luofangping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复useStock问题
parent
8df0263d
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
29 additions
and
10 deletions
+29
-10
constants.d.ts
server/duibats/dist/constants.d.ts
+4
-0
constants.js
server/duibats/dist/constants.js
+5
-1
constants.js.map
server/duibats/dist/constants.js.map
+1
-1
awards.controller.js.map
server/duibats/dist/controller/awards.controller.js.map
+1
-1
index.js
server/duibats/dist/decorator/index.js
+1
-1
activityconfig.service.js
server/duibats/dist/service/activityconfig.service.js
+4
-1
activityconfig.service.js.map
server/duibats/dist/service/activityconfig.service.js.map
+1
-1
index.js
server/duibats/dist/service/index.js
+0
-1
index.js.map
server/duibats/dist/service/index.js.map
+1
-1
index.js
server/duibats/dist/utils/index.js
+1
-1
constants.ts
server/duibats/src/constants.ts
+5
-0
activityconfig.service.ts
server/duibats/src/service/activityconfig.service.ts
+5
-1
No files found.
server/duibats/dist/constants.d.ts
View file @
2d11d900
...
@@ -265,3 +265,7 @@ export declare const SHIP_STATUS: {
...
@@ -265,3 +265,7 @@ export declare const SHIP_STATUS: {
NO_SHIP
:
number
;
NO_SHIP
:
number
;
HAS_SHIP
:
number
;
HAS_SHIP
:
number
;
};
};
export
declare
const
STOCK_TYPE
:
{
LIMIT
:
number
;
NO_LIMIT
:
number
;
};
server/duibats/dist/constants.js
View file @
2d11d900
"use strict"
;
"use strict"
;
/** @format */
/** @format */
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
SHIP_STATUS
=
exports
.
TEMPLATE_INFO
=
exports
.
APP_SUB_CODE
=
exports
.
PASS_URL_LIST
=
exports
.
TASK_CHECK_TYPE
=
exports
.
TASK_TYPE_TEXT
=
exports
.
DELETE_STATUS
=
exports
.
_48_HOURS
=
exports
.
EIGHT_HOURS
=
exports
.
GOODSINFO
=
exports
.
B_APP_NAME
=
exports
.
errorCode
=
exports
.
CODE_TYPES
=
exports
.
PRIZE_TYPE
=
exports
.
LOGGER_TYPE
=
exports
.
DRAW_STATUS
=
exports
.
OPEN_PRIZE_STATUS
=
exports
.
BusinessError
=
void
0
;
exports
.
S
TOCK_TYPE
=
exports
.
S
HIP_STATUS
=
exports
.
TEMPLATE_INFO
=
exports
.
APP_SUB_CODE
=
exports
.
PASS_URL_LIST
=
exports
.
TASK_CHECK_TYPE
=
exports
.
TASK_TYPE_TEXT
=
exports
.
DELETE_STATUS
=
exports
.
_48_HOURS
=
exports
.
EIGHT_HOURS
=
exports
.
GOODSINFO
=
exports
.
B_APP_NAME
=
exports
.
errorCode
=
exports
.
CODE_TYPES
=
exports
.
PRIZE_TYPE
=
exports
.
LOGGER_TYPE
=
exports
.
DRAW_STATUS
=
exports
.
OPEN_PRIZE_STATUS
=
exports
.
BusinessError
=
void
0
;
var
sdk_1
=
require
(
"./sdk"
);
var
sdk_1
=
require
(
"./sdk"
);
exports
.
BusinessError
=
{
exports
.
BusinessError
=
{
// 更新重试失败(用于并发更新)
// 更新重试失败(用于并发更新)
...
@@ -263,4 +263,8 @@ exports.SHIP_STATUS = {
...
@@ -263,4 +263,8 @@ exports.SHIP_STATUS = {
NO_SHIP
:
2
,
NO_SHIP
:
2
,
HAS_SHIP
:
3
HAS_SHIP
:
3
};
};
exports
.
STOCK_TYPE
=
{
LIMIT
:
1
,
NO_LIMIT
:
2
};
//# sourceMappingURL=constants.js.map
//# sourceMappingURL=constants.js.map
\ No newline at end of file
server/duibats/dist/constants.js.map
View file @
2d11d900
{"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,cAAc;IACd,uBAAuB,EAAE;QACvB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,aAAa;KAC1B;IACD,QAAQ;IACR,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;KACpB;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,UAAU;IACV,oBAAoB,EAAE;QACpB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,4CAAS;KACtB;IACD,uBAAuB,EAAE;QACvB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,gCAAO;KACpB;IACD,gBAAgB,EAAE;Q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;IACb,cAAc;IACd,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,gBAAgB;IAChB,WAAW;IACX,OAAO;IACP,WAAW;IACX,gBAAgB;IAChB,mBAAmB;IACnB,WAAW;IACX,aAAa;IACb,aAAa;IACb,iBAAiB;IACjB,WAAW;IACX,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,YAAY;IACZ,WAAW;CACZ,CAAA;AAED,gBAAgB;AACH,QAAA,YAAY,GAAW,qBAAqB,CAAA;AAE5C,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE,cAAc;IACvB,WAAW,EAAE,gBAAgB;IAC7B,gBAAgB,EAAE,OAAO;CAC1B,CAAA;AAED,MAAM;AACO,QAAA,WAAW,GAAG;IACzB,UAAU,EAAE,CAAC;IACb,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;CACZ,CAAA"}
{"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,cAAc;IACd,uBAAuB,EAAE;QACvB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,aAAa;KAC1B;IACD,QAAQ;IACR,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;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AE;CAC7B,CAAA;AAEY,QAAA,aAAa,GAAa;IACrC,SAAS;IACT,UAAU;IACV,YAAY;IACZ,aAAa;IACb,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,eAAe;IACf,YAAY;IACZ,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,OAAO;IACP,WAAW;IACX,WAAW;IACX,cAAc;IACd,eAAe;IACf,UAAU;IACV,cAAc;IACd,cAAc;IACd,cAAc;IACd,aAAa;IACb,cAAc;IACd,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,gBAAgB;IAChB,WAAW;IACX,OAAO;IACP,WAAW;IACX,gBAAgB;IAChB,mBAAmB;IACnB,WAAW;IACX,aAAa;IACb,aAAa;IACb,iBAAiB;IACjB,WAAW;IACX,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,YAAY;IACZ,WAAW;CACZ,CAAA;AAED,gBAAgB;AACH,QAAA,YAAY,GAAW,qBAAqB,CAAA;AAE5C,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE,cAAc;IACvB,WAAW,EAAE,gBAAgB;IAC7B,gBAAgB,EAAE,OAAO;CAC1B,CAAA;AAED,MAAM;AACO,QAAA,WAAW,GAAG;IACzB,UAAU,EAAE,CAAC;IACb,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;CACZ,CAAA;AAEY,QAAA,UAAU,GAAG;IACxB,KAAK,EAAE,CAAC;IACR,QAAQ,EAAC,CAAC;CACX,CAAA"}
\ No newline at end of file
\ No newline at end of file
server/duibats/dist/controller/awards.controller.js.map
View file @
2d11d900
This diff is collapsed.
Click to expand it.
server/duibats/dist/decorator/index.js
View file @
2d11d900
...
@@ -7,7 +7,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
...
@@ -7,7 +7,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
o
[
k2
]
=
m
[
k
];
o
[
k2
]
=
m
[
k
];
}));
}));
var
__exportStar
=
(
this
&&
this
.
__exportStar
)
||
function
(
m
,
exports
)
{
var
__exportStar
=
(
this
&&
this
.
__exportStar
)
||
function
(
m
,
exports
)
{
for
(
var
p
in
m
)
if
(
p
!==
"default"
&&
!
Object
.
prototype
.
hasOwnProperty
.
call
(
exports
,
p
))
__createBinding
(
exports
,
m
,
p
);
for
(
var
p
in
m
)
if
(
p
!==
"default"
&&
!
exports
.
hasOwnProperty
(
p
))
__createBinding
(
exports
,
m
,
p
);
};
};
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
/** @format */
/** @format */
...
...
server/duibats/dist/service/activityconfig.service.js
View file @
2d11d900
...
@@ -208,6 +208,9 @@ var ActivityConfigService = /** @class */ (function () {
...
@@ -208,6 +208,9 @@ var ActivityConfigService = /** @class */ (function () {
case
3
:
case
3
:
isEditPrize
=
bothIds
.
includes
(
allPrizeList
[
i
].
_id
);
isEditPrize
=
bothIds
.
includes
(
allPrizeList
[
i
].
_id
);
if
(
!
isEditPrize
)
return
[
3
/*break*/
,
5
];
if
(
!
isEditPrize
)
return
[
3
/*break*/
,
5
];
if
(
allPrizeList
[
i
].
switchStock
===
constants_1
.
STOCK_TYPE
.
LIMIT
)
{
allPrizeList
[
i
].
useStock
?
delete
allPrizeList
[
i
].
useStock
:
''
;
}
return
[
4
/*yield*/
,
this
.
updateOnePrizeById
(
allPrizeList
[
i
].
_id
,
allPrizeList
[
i
])];
return
[
4
/*yield*/
,
this
.
updateOnePrizeById
(
allPrizeList
[
i
].
_id
,
allPrizeList
[
i
])];
case
4
:
case
4
:
editResult
=
_a
.
sent
();
editResult
=
_a
.
sent
();
...
@@ -246,7 +249,7 @@ var ActivityConfigService = /** @class */ (function () {
...
@@ -246,7 +249,7 @@ var ActivityConfigService = /** @class */ (function () {
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
return
__generator
(
this
,
function
(
_a
)
{
return
__generator
(
this
,
function
(
_a
)
{
switch
(
_a
.
label
)
{
switch
(
_a
.
label
)
{
case
0
:
return
[
4
/*yield*/
,
this
.
activityconfigPrizeDao
.
insertOne
(
__assign
(
__assign
({},
data
),
{
activityId
:
activityId
,
createTime
:
Date
.
now
(),
updateTime
:
Date
.
now
(),
deleteStatus
:
constants_1
.
DELETE_STATUS
.
EXIST
}))];
case
0
:
return
[
4
/*yield*/
,
this
.
activityconfigPrizeDao
.
insertOne
(
__assign
(
__assign
({},
data
),
{
activityId
:
activityId
,
useStock
:
0
,
createTime
:
Date
.
now
(),
updateTime
:
Date
.
now
(),
deleteStatus
:
constants_1
.
DELETE_STATUS
.
EXIST
}))];
case
1
:
return
[
2
/*return*/
,
_a
.
sent
()];
case
1
:
return
[
2
/*return*/
,
_a
.
sent
()];
}
}
});
});
...
...
server/duibats/dist/service/activityconfig.service.js.map
View file @
2d11d900
This diff is collapsed.
Click to expand it.
server/duibats/dist/service/index.js
View file @
2d11d900
"use strict"
;
"use strict"
;
/** @format */
/** @format */
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
AwardsService
=
exports
.
InstanceService
=
exports
.
SellerService
=
exports
.
TaobaoTopService
=
exports
.
ActivityconfigService
=
void
0
;
var
activityconfig_service_1
=
require
(
"./activityconfig.service"
);
var
activityconfig_service_1
=
require
(
"./activityconfig.service"
);
Object
.
defineProperty
(
exports
,
"ActivityconfigService"
,
{
enumerable
:
true
,
get
:
function
()
{
return
activityconfig_service_1
.
default
;
}
});
Object
.
defineProperty
(
exports
,
"ActivityconfigService"
,
{
enumerable
:
true
,
get
:
function
()
{
return
activityconfig_service_1
.
default
;
}
});
var
taobaoTop_service_1
=
require
(
"./taobaoTop.service"
);
var
taobaoTop_service_1
=
require
(
"./taobaoTop.service"
);
...
...
server/duibats/dist/service/index.js.map
View file @
2d11d900
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/service/index.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,mEAA2E;AAAlE,+HAAA,OAAO,OAAyB;AACzC,yDAAiE;AAAxD,qHAAA,OAAO,OAAoB;AACpC,mDAA2D;AAAlD,+GAAA,OAAO,OAAiB;AACjC,uDAA+D;AAAtD,mHAAA,OAAO,OAAmB;AACnC,mDAA2D;AAAlD,+GAAA,OAAO,OAAiB"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/service/index.ts"],"names":[],"mappings":";AAAA,cAAc;;AAEd,mEAA2E;AAAlE,+HAAA,OAAO,OAAyB;AACzC,yDAAiE;AAAxD,qHAAA,OAAO,OAAoB;AACpC,mDAA2D;AAAlD,+GAAA,OAAO,OAAiB;AACjC,uDAA+D;AAAtD,mHAAA,OAAO,OAAmB;AACnC,mDAA2D;AAAlD,+GAAA,OAAO,OAAiB"}
\ No newline at end of file
\ No newline at end of file
server/duibats/dist/utils/index.js
View file @
2d11d900
...
@@ -8,7 +8,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
...
@@ -8,7 +8,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
o
[
k2
]
=
m
[
k
];
o
[
k2
]
=
m
[
k
];
}));
}));
var
__exportStar
=
(
this
&&
this
.
__exportStar
)
||
function
(
m
,
exports
)
{
var
__exportStar
=
(
this
&&
this
.
__exportStar
)
||
function
(
m
,
exports
)
{
for
(
var
p
in
m
)
if
(
p
!==
"default"
&&
!
Object
.
prototype
.
hasOwnProperty
.
call
(
exports
,
p
))
__createBinding
(
exports
,
m
,
p
);
for
(
var
p
in
m
)
if
(
p
!==
"default"
&&
!
exports
.
hasOwnProperty
(
p
))
__createBinding
(
exports
,
m
,
p
);
};
};
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
__exportStar
(
require
(
"./logger"
),
exports
);
__exportStar
(
require
(
"./logger"
),
exports
);
...
...
server/duibats/src/constants.ts
View file @
2d11d900
...
@@ -278,3 +278,8 @@ export const SHIP_STATUS = {
...
@@ -278,3 +278,8 @@ export const SHIP_STATUS = {
NO_SHIP
:
2
,
NO_SHIP
:
2
,
HAS_SHIP
:
3
HAS_SHIP
:
3
}
}
export
const
STOCK_TYPE
=
{
LIMIT
:
1
,
NO_LIMIT
:
2
}
server/duibats/src/service/activityconfig.service.ts
View file @
2d11d900
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
import
{
BaseDao
}
from
'../sdk'
import
{
BaseDao
}
from
'../sdk'
import
{
ACTIVITY_CONFIG_DB_NAME
,
PRIZE_CONFIG_DB_NAME
}
from
'../db'
import
{
ACTIVITY_CONFIG_DB_NAME
,
PRIZE_CONFIG_DB_NAME
}
from
'../db'
import
{
DELETE_STATUS
,
OPEN_PRIZE_STATUS
,
PRIZE_TYPE
}
from
'../constants'
import
{
DELETE_STATUS
,
OPEN_PRIZE_STATUS
,
PRIZE_TYPE
,
STOCK_TYPE
}
from
'../constants'
import
{
signFigures
}
from
'../utils'
import
{
signFigures
}
from
'../utils'
export
default
class
ActivityConfigService
{
export
default
class
ActivityConfigService
{
...
@@ -119,6 +119,9 @@ export default class ActivityConfigService {
...
@@ -119,6 +119,9 @@ export default class ActivityConfigService {
// 更新的奖品
// 更新的奖品
const
isEditPrize
=
bothIds
.
includes
(
allPrizeList
[
i
].
_id
)
const
isEditPrize
=
bothIds
.
includes
(
allPrizeList
[
i
].
_id
)
if
(
isEditPrize
)
{
if
(
isEditPrize
)
{
if
(
allPrizeList
[
i
].
switchStock
===
STOCK_TYPE
.
LIMIT
)
{
allPrizeList
[
i
].
useStock
?
delete
allPrizeList
[
i
].
useStock
:
''
}
const
editResult
=
await
this
.
updateOnePrizeById
(
allPrizeList
[
i
].
_id
,
allPrizeList
[
i
])
const
editResult
=
await
this
.
updateOnePrizeById
(
allPrizeList
[
i
].
_id
,
allPrizeList
[
i
])
if
(
editResult
)
{
if
(
editResult
)
{
result
.
success
.
push
(
editResult
)
result
.
success
.
push
(
editResult
)
...
@@ -151,6 +154,7 @@ export default class ActivityConfigService {
...
@@ -151,6 +154,7 @@ export default class ActivityConfigService {
return
await
this
.
activityconfigPrizeDao
.
insertOne
({
return
await
this
.
activityconfigPrizeDao
.
insertOne
({
...
data
,
...
data
,
activityId
,
activityId
,
useStock
:
0
,
createTime
:
Date
.
now
(),
createTime
:
Date
.
now
(),
updateTime
:
Date
.
now
(),
updateTime
:
Date
.
now
(),
deleteStatus
:
DELETE_STATUS
.
EXIST
deleteStatus
:
DELETE_STATUS
.
EXIST
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment