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
44f4f185
Commit
44f4f185
authored
Jun 01, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
39a45692
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
4 deletions
+52
-4
xgg-saas-platform/app/base/controller/impl/saas/channelCtl.js
+25
-0
xgg-saas-platform/app/base/controller/impl/saas/orderCtl.js
+4
-1
xgg-saas-platform/app/base/controller/impl/uc/userCtl.js
+14
-0
xgg-saas-platform/app/base/system.js
+3
-3
xgg-saas-platform/app/config/localsettings.js
+6
-0
No files found.
xgg-saas-platform/app/base/controller/impl/saas/channelCtl.js
View file @
44f4f185
...
@@ -22,6 +22,31 @@ class ChannelCtl extends CtlBase {
...
@@ -22,6 +22,31 @@ class ChannelCtl extends CtlBase {
}
}
}
}
/**
* fn:获取渠道交付信息
* @param params
* @param pobj2
* @param req
* @returns {Promise<{msg: string, data: (*|null), bizmsg: string, status: number}|*>}
*/
async
delvierInfo
(
params
,
pobj2
,
req
)
{
try
{
if
(
!
params
.
channel_id
){
system
.
getResult
(
null
,
`登录失效,请重新登录`
);
}
let
user
=
req
.
loginUser
;
let
rs
=
{
contact_man
:
user
.
contact_man
,
contact_mobile
:
user
.
contact_mobile
,
contact_email
:
user
.
contact_email
,
contact_addr
:
user
.
contact_addr
,
};
return
system
.
getResult
(
rs
);
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
async
page
(
params
,
pobj2
,
req
)
{
async
page
(
params
,
pobj2
,
req
)
{
try
{
try
{
return
await
this
.
channelSve
.
page
(
params
);
return
await
this
.
channelSve
.
page
(
params
);
...
...
xgg-saas-platform/app/base/controller/impl/saas/orderCtl.js
View file @
44f4f185
...
@@ -58,6 +58,8 @@ class ChannelCtl extends CtlBase {
...
@@ -58,6 +58,8 @@ class ChannelCtl extends CtlBase {
}
}
}
}
/**
/**
* fn:查询产品
* fn:查询产品
* @param pobj
* @param pobj
...
@@ -68,7 +70,8 @@ class ChannelCtl extends CtlBase {
...
@@ -68,7 +70,8 @@ class ChannelCtl extends CtlBase {
async
orderChooseProducts
(
pobj
,
pobj2
,
req
)
{
async
orderChooseProducts
(
pobj
,
pobj2
,
req
)
{
//TODO: 绑定渠道商品信息
//TODO: 绑定渠道商品信息
try
{
try
{
return
system
.
getResult
([{
"id"
:
"10020300"
,
"name"
:
"刻章办理"
},{
"id"
:
"10020400"
,
"name"
:
"银行开户"
},{
"id"
:
"10020500"
,
"name"
:
"税务报道"
},{
"id"
:
"10020600"
,
"name"
:
"代理记账"
}]);
// return system.getResult([{"id":"10020300","name":"刻章办理"},{"id":"10020400","name":"银行开户"},{"id":"10020500","name":"税务报道"},{"id":"10020600","name":"代理记账"}]);
return
system
.
getResult
([{
"id"
:
"10020300"
,
"name"
:
"刻章办理"
},{
"id"
:
"10020400"
,
"name"
:
"银行开户"
},{
"id"
:
"10020500"
,
"name"
:
"税务报道"
}]);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
return
system
.
getResultFail
(
500
,
"接口错误"
);
return
system
.
getResultFail
(
500
,
"接口错误"
);
...
...
xgg-saas-platform/app/base/controller/impl/uc/userCtl.js
View file @
44f4f185
...
@@ -12,6 +12,8 @@ class UserCtl extends CtlBase {
...
@@ -12,6 +12,8 @@ class UserCtl extends CtlBase {
this
.
redisClient
=
system
.
getObject
(
"util.redisClient"
);
this
.
redisClient
=
system
.
getObject
(
"util.redisClient"
);
this
.
captchaSve
=
system
.
getObject
(
"service.common.captchaSve"
);
this
.
captchaSve
=
system
.
getObject
(
"service.common.captchaSve"
);
this
.
deliverSve
=
system
.
getObject
(
"service.common.deliverSve"
);
this
.
deliverSve
=
system
.
getObject
(
"service.common.deliverSve"
);
this
.
channelSve
=
system
.
getObject
(
"service.saas.channelSve"
);
}
}
async
login
(
pobj
,
pobj2
,
req
,
res
)
{
async
login
(
pobj
,
pobj2
,
req
,
res
)
{
...
@@ -27,6 +29,18 @@ class UserCtl extends CtlBase {
...
@@ -27,6 +29,18 @@ class UserCtl extends CtlBase {
}
}
loginUser
=
loginUser
.
data
;
loginUser
=
loginUser
.
data
;
let
channel
=
await
this
.
channelSve
.
info
({
id
:
loginUser
.
channel_id
});
if
(
channel
.
status
!=
0
)
{
return
system
.
getResult
(
null
,
`渠道【
${
loginName
}
】不存在`
);
}
channel
=
channel
.
data
;
loginUser
.
contact_man
=
channel
.
contact_man
;
loginUser
.
contact_mobile
=
channel
.
contact_mobile
;
loginUser
.
contact_email
=
channel
.
contact_email
;
loginUser
.
contact_addr
=
channel
.
contact_addr
;
var
loginsid
=
await
this
.
setLogin
(
loginUser
);
var
loginsid
=
await
this
.
setLogin
(
loginUser
);
let
rs
=
{
let
rs
=
{
key
:
loginsid
,
key
:
loginsid
,
...
...
xgg-saas-platform/app/base/system.js
View file @
44f4f185
...
@@ -191,10 +191,10 @@ class System {
...
@@ -191,10 +191,10 @@ class System {
let
dev
=
"http://39.107.234.14"
;
let
dev
=
"http://39.107.234.14"
;
return
{
return
{
// 公共服务
// 公共服务
common
:
dev
+
":3102"
+
path
,
common
:
local
+
":3102"
+
path
,
// 商户服务
// 商户服务
merchant
:
dev
+
":3101"
+
path
,
merchant
:
local
+
":3101"
+
path
,
// 订单服务
// 订单服务
order
:
local
+
":3103"
+
path
,
order
:
local
+
":3103"
+
path
,
...
@@ -203,7 +203,7 @@ class System {
...
@@ -203,7 +203,7 @@ class System {
invoice
:
dev
+
":3105"
+
path
,
invoice
:
dev
+
":3105"
+
path
,
// 用户服务
// 用户服务
uc
:
dev
+
":3106"
+
path
,
uc
:
local
+
":3106"
+
path
,
// 交易
// 交易
trade
:
dev
+
":3107"
+
path
,
trade
:
dev
+
":3107"
+
path
,
...
...
xgg-saas-platform/app/config/localsettings.js
View file @
44f4f185
...
@@ -5,6 +5,12 @@ var settings={
...
@@ -5,6 +5,12 @@ var settings={
password
:
"Gongsibao2018"
,
password
:
"Gongsibao2018"
,
db
:
10
,
db
:
10
,
},
},
// redis:{
// host: "127.0.0.1",
// port: 6379,
// password: "",
// db:10,
// },
database
:{
database
:{
dbname
:
"xgg"
,
dbname
:
"xgg"
,
user
:
"write"
,
user
:
"write"
,
...
...
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