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
bc0f9a32
Commit
bc0f9a32
authored
Jan 09, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
8fbba5be
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
95 additions
and
87 deletions
+95
-87
igirl-channel/app/base/api/impl/action/receiveData.js
+16
-15
igirl-channel/app/base/api/impl/action/tmOrder.js
+16
-15
igirl-channel/app/base/api/impl/action/tmQuery.js
+17
-15
igirl-channel/app/base/api/impl/action/tmTools.js
+17
-15
igirl-channel/app/base/api/impl/action/tmTransaction.js
+13
-12
igirl-channel/app/base/api/impl/auth/accessAuth.js
+16
-15
No files found.
igirl-channel/app/base/api/impl/action/receiveData.js
View file @
bc0f9a32
...
...
@@ -29,21 +29,22 @@ class ReceiveDataAPI extends APIBase {
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
var
result
=
null
;
switch
(
pobj
.
actionProcess
)
{
case
"jd"
:
//京东
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
pobj
,
req
);
break
;
case
"1688"
:
//1688
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
pobj
,
req
);
break
;
case
"gsbhome"
:
//gsb_homepage
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
pobj
,
req
);
break
;
default
:
result
=
system
.
getResult
(
null
,
"actionProcess参数错误"
);
break
;
}
var
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
// var result = null;
// switch (pobj.actionProcess) {
// case "jd"://京东
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, pobj, req);
// break;
// case "1688"://1688
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, pobj, req);
// break;
// case "gsbhome"://gsb_homepage
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, pobj, req);
// break;
// default:
// result = system.getResult(null, "actionProcess参数错误");
// break;
// }
return
result
;
}
async
opActionProcess
(
action_process
,
action_type
,
action_body
,
pobj
,
req
)
{
...
...
igirl-channel/app/base/api/impl/action/tmOrder.js
View file @
bc0f9a32
...
...
@@ -30,21 +30,22 @@ class TmOrderAPI extends APIBase {
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
var
result
=
null
;
switch
(
pobj
.
actionProcess
)
{
case
"jd"
:
//京东
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
pobj
,
req
);
break
;
case
"1688"
:
//1688
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
pobj
,
req
);
break
;
case
"gsbhome"
:
//gsb_homepage
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
pobj
,
req
);
break
;
default
:
result
=
system
.
getResult
(
null
,
"actionProcess参数错误"
);
break
;
}
var
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
// var result = null;
// switch (pobj.actionProcess) {
// case "jd"://京东
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, pobj, req);
// break;
// case "1688"://1688
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, pobj, req);
// break;
// case "gsbhome"://gsb_homepage
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, pobj, req);
// break;
// default:
// result = system.getResult(null, "actionProcess参数错误");
// break;
// }
return
result
;
}
async
opActionProcess
(
action_process
,
action_type
,
action_body
,
pobj
,
req
)
{
...
...
igirl-channel/app/base/api/impl/action/tmQuery.js
View file @
bc0f9a32
...
...
@@ -21,21 +21,23 @@ class TmQueryAPI extends APIBase {
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
var
result
=
null
;
switch
(
pobj
.
actionProcess
)
{
case
"jd"
:
//京东
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
break
;
case
"1688"
:
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
break
;
case
"gsbhome"
:
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
break
;
default
:
result
=
system
.
getResult
(
null
,
"actionProcess参数错误"
);
break
;
}
var
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
// var result = null;
// switch (pobj.actionProcess) {
// case "jd"://京东
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, req);
// break;
// case "1688":
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, req);
// break;
// case "gsbhome":
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, req);
// break;
// default:
// result = system.getResult(null, "actionProcess参数错误");
// break;
// }
return
result
;
}
async
opActionProcess
(
action_process
,
action_type
,
action_body
,
req
)
{
...
...
igirl-channel/app/base/api/impl/action/tmTools.js
View file @
bc0f9a32
...
...
@@ -18,21 +18,23 @@ class TmToolsAPI extends APIBase {
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
var
result
=
null
;
switch
(
pobj
.
actionProcess
)
{
case
"jd"
:
//京东
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
break
;
case
"1688"
:
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
break
;
case
"gsbhome"
:
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
break
;
default
:
result
=
system
.
getResult
(
null
,
"actionProcess参数错误"
);
break
;
}
var
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
// var result = null;
// switch (pobj.actionProcess) {
// case "jd"://京东
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, req);
// break;
// case "1688":
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, req);
// break;
// case "gsbhome":
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, req);
// break;
// default:
// result = system.getResult(null, "actionProcess参数错误");
// break;
// }
return
result
;
}
async
opActionProcess
(
action_process
,
action_type
,
action_body
,
req
)
{
...
...
igirl-channel/app/base/api/impl/action/tmTransaction.js
View file @
bc0f9a32
...
...
@@ -18,18 +18,19 @@ class TmTransactionAPI extends APIBase {
if
(
!
pobj
.
action_type
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
var
result
=
null
;
switch
(
pobj
.
actionProcess
)
{
case
"jd"
:
//京东
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
);
break
;
case
"1688"
:
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
);
break
;
default
:
result
=
system
.
getResult
(
null
,
"actionProcess参数错误"
);
break
;
}
var
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
// var result = null;
// switch (pobj.actionProcess) {
// case "jd"://京东
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody);
// break;
// case "1688":
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody);
// break;
// default:
// result = system.getResult(null, "actionProcess参数错误");
// break;
// }
return
result
;
}
async
opActionProcess
(
action_process
,
action_type
,
action_body
,
req
)
{
...
...
igirl-channel/app/base/api/impl/auth/accessAuth.js
View file @
bc0f9a32
...
...
@@ -19,21 +19,22 @@ class AccessAuthAPI extends APIBase {
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
var
result
=
null
;
switch
(
pobj
.
actionProcess
)
{
case
"jd"
:
//京东
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
pobj
,
req
);
break
;
case
"1688"
:
//1688
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
pobj
,
req
);
break
;
case
"gsbhome"
:
//gsb_homepage
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
pobj
,
req
);
break
;
default
:
result
=
system
.
getResult
(
null
,
"actionProcess参数错误"
);
break
;
}
var
result
=
await
this
.
opActionProcess
(
pobj
.
actionProcess
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
// var result = null;
// switch (pobj.actionProcess) {
// case "jd"://京东
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, pobj, req);
// break;
// case "1688"://1688
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, pobj, req);
// break;
// case "gsbhome"://gsb_homepage
// result = await this.opActionProcess(pobj.actionProcess, pobj.actionType, pobj.actionBody, pobj, req);
// break;
// default:
// result = system.getResult(null, "actionProcess参数错误");
// break;
// }
return
result
;
}
async
opActionProcess
(
action_process
,
action_type
,
action_body
,
pobj
,
req
)
{
...
...
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