Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
7c8b0d56
Commit
7c8b0d56
authored
Nov 11, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
471e31d4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
igirl-channel/app/base/api/api.base.js
+4
-1
igirl-channel/app/base/api/impl/action/tmOrder.js
+1
-1
igirl-channel/app/base/db/models/dbapp/app.js
+2
-1
No files found.
igirl-channel/app/base/api/api.base.js
View file @
7c8b0d56
...
...
@@ -91,11 +91,14 @@ class APIBase {
// if (signResult.status != 0) {
// return system.getResultFail(system.signFail, signResult.msg);
// }
if
(
!
pobj
.
isUser
||
pobj
.
isUser
!=
"no
"
)
{
if
(
pobj
.
isUser
&&
pobj
.
isUser
==
"yes
"
)
{
var
channelUserId
=
pobj
.
actionBody
.
channelUserId
||
""
;
if
(
!
channelUserId
&&
pobj
.
actionBody
.
channelUser
)
{
channelUserId
=
pobj
.
actionBody
.
channelUser
.
channelUserId
;
}
if
(
!
channelUserId
)
{
return
system
.
getResult
(
null
,
"base verify channelUserId is not empty"
);
}
var
userCacheKey
=
selfAppInfo
.
data
.
uappKey
+
"_"
+
channelUserId
;
var
userInfo
=
await
this
.
cacheManager
[
"ApiUserCache"
].
cache
(
userCacheKey
,
channelUserId
,
this
.
exTime
,
pobj
.
actionBody
,
selfAppInfo
,
uAppInfo
.
data
.
app
.
id
);
...
...
igirl-channel/app/base/api/impl/action/tmOrder.js
View file @
7c8b0d56
...
...
@@ -49,7 +49,7 @@ class TmOrderAPI extends APIBase {
"tmConfirm"
,
"updateTmInfo"
,
"updateNclInfo"
,
"updateContacts"
,
"updateCustomerInfo"
,
"updateCustomerInfo"
].
indexOf
(
action_type
)
>=
0
)
{
if
(
!
action_body
.
channelUserId
)
{
return
system
.
getResult
(
null
,
"channelUserId is not empty"
);
return
system
.
getResult
(
null
,
"
verify
channelUserId is not empty"
);
}
}
switch
(
action_type
)
{
...
...
igirl-channel/app/base/db/models/dbapp/app.js
View file @
7c8b0d56
...
...
@@ -20,7 +20,8 @@ module.exports = (db, DataTypes) => {
appSecret
:
DataTypes
.
STRING
(
64
),
// 密钥信息,用于进行签名请求接口
status
:
DataTypes
.
INTEGER
,
// 状态 0禁用 1启用
channelAppId
:
DataTypes
.
STRING
(
64
),
// 渠道appID
channelAppKey
:
DataTypes
.
STRING
(
64
),
// 渠道appKey
channelAppKey
:
DataTypes
.
STRING
(
64
),
// 渠道appKey
pushOrderUrl
:
DataTypes
.
STRING
(
500
),
// 获取渠道推送订单的url
notes
:
DataTypes
.
STRING
,
// 备注
},
{
paranoid
:
false
,
//假的删除
...
...
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