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
cd38e06b
Commit
cd38e06b
authored
Jun 03, 2021
by
王波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑模板
parent
97b155f9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
package.json
server/duibats/package.json
+1
-1
save.controller.ts
server/duibats/src/controller/save.controller.ts
+14
-5
No files found.
server/duibats/package.json
View file @
cd38e06b
...
...
@@ -11,7 +11,7 @@
"dayjs"
:
"^1.8.28"
,
"node-xlsx"
:
"^0.15.0"
,
"source-map-support"
:
"^0.5.19"
,
"taobao-mini-sdk"
:
"0.2.
4
"
"taobao-mini-sdk"
:
"0.2.
5
"
},
"scripts"
:
{
"start"
:
"tsc"
,
...
...
server/duibats/src/controller/save.controller.ts
View file @
cd38e06b
...
...
@@ -2,7 +2,7 @@
import
{
CODE_TYPES
,
_48_HOURS
}
from
'./../constants'
import
{
services
,
paramsCheck
,
paramsValidate
}
from
'../decorator'
import
{
resultsModel
}
from
'../sdk'
import
{
resultsModel
,
TBAPIS
}
from
'../sdk'
import
{
ActivityconfigService
}
from
'../service'
import
{
saveParams
}
from
'../utils/saveValidate'
...
...
@@ -92,11 +92,20 @@ export default class ActivitSaveController {
}
if
(
result
||
result
===
0
)
{
<%
if
(
miniConfig
.
needMiniapp
&&
miniConfig
.
MiniappIdList
.
length
>
0
)
{
%>
try
{
<%
for
(
var
i
=
0
;
i
<
miniConfig
.
MiniappIdList
.
length
;
++
i
)
{
%>
<%-
`await TBAPIS.configMiniApp(context, {appId:
${
+
miniConfig
.
MiniappIdList
[
i
]}
,version:'0.0.1'})`
%>
<%
}
%>
}
catch
(
error
)
{
console
.
log
(
error
)
}
<%
}
%>
return
resultsModel
.
success
(
true
)
}
else
{
console
.
log
(
result
,
'保存活动失败'
)
return
resultsModel
.
error
(
CODE_TYPES
.
SYSTEM_ERROR
,
'保存活动失败'
)
}
}
}
}
}
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