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
f28a9afe
Commit
f28a9afe
authored
Sep 15, 2020
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getAppInfoByAppkey
parent
bbbf4433
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
1 deletions
+25
-1
center-app/app/base/api/api.base.js
+1
-1
center-app/app/base/api/impl/payment/paymentApi.js
+5
-0
center-app/app/base/db/impl/dbapp/appDao.js
+8
-0
center-app/app/base/service/impl/dbproduct/productSve.js
+3
-0
center-app/app/base/service/impl/utilsSve/utilstlbankSve.js
+8
-0
No files found.
center-app/app/base/api/api.base.js
View file @
f28a9afe
...
@@ -53,7 +53,7 @@ class APIBase {
...
@@ -53,7 +53,7 @@ class APIBase {
async
doexec
(
gname
,
methodname
,
pobj
,
query
,
req
)
{
async
doexec
(
gname
,
methodname
,
pobj
,
query
,
req
)
{
req
.
requestId
=
this
.
getUUID
();
req
.
requestId
=
this
.
getUUID
();
try
{
try
{
if
([
"getTokenByHosts"
,
"receiveCallBackNotify"
,
"getAppInfo"
,
"getPayInfo"
,
"verifyAliPayReturnSign"
,
"test"
].
indexOf
(
methodname
)
<
0
)
{
if
([
"getTokenByHosts"
,
"receiveCallBackNotify"
,
"getAppInfo"
,
"get
AppInfoByAppKey"
,
"get
PayInfo"
,
"verifyAliPayReturnSign"
,
"test"
].
indexOf
(
methodname
)
<
0
)
{
if
(
!
pobj
.
appInfo
)
{
if
(
!
pobj
.
appInfo
)
{
return
system
.
getResult
(
null
,
"pobj.appInfo can not be empty !"
);
return
system
.
getResult
(
null
,
"pobj.appInfo can not be empty !"
);
}
}
...
...
center-app/app/base/api/impl/payment/paymentApi.js
View file @
f28a9afe
...
@@ -50,5 +50,9 @@ class PaymentAPI extends APIBase {
...
@@ -50,5 +50,9 @@ class PaymentAPI extends APIBase {
async
getAppInfo
(
pobj
,
qobj
,
req
)
{
async
getAppInfo
(
pobj
,
qobj
,
req
)
{
return
await
this
.
utilstlbankSve
.
getAppItem
(
pobj
.
uappId
);
return
await
this
.
utilstlbankSve
.
getAppItem
(
pobj
.
uappId
);
}
}
async
getAppInfoByAppKey
(
pobj
,
qobj
,
req
){
return
await
this
.
utilstlbankSve
.
getAppItemByAppkey
(
pobj
.
appKey
)
}
}
}
module
.
exports
=
PaymentAPI
;
module
.
exports
=
PaymentAPI
;
\ No newline at end of file
center-app/app/base/db/impl/dbapp/appDao.js
View file @
f28a9afe
...
@@ -29,5 +29,13 @@ class AppDao extends Dao {
...
@@ -29,5 +29,13 @@ class AppDao extends Dao {
raw
:
true
raw
:
true
});
});
}
}
async
getItemByAppKey
(
appKey
)
{
return
this
.
model
.
findOne
({
where
:
{
uapp_key
:
appKey
},
raw
:
true
});
}
}
}
module
.
exports
=
AppDao
;
module
.
exports
=
AppDao
;
center-app/app/base/service/impl/dbproduct/productSve.js
View file @
f28a9afe
...
@@ -14,6 +14,9 @@ class ProductService extends ServiceBase {
...
@@ -14,6 +14,9 @@ class ProductService extends ServiceBase {
*/
*/
async
getProductList
(
actionBody
,
appInfo
)
{
async
getProductList
(
actionBody
,
appInfo
)
{
var
sql
=
"select * from v_product where uapp_id="
+
appInfo
.
uapp_id
+
" and path_code like '"
+
actionBody
.
pathCode
+
"%'"
;
var
sql
=
"select * from v_product where uapp_id="
+
appInfo
.
uapp_id
+
" and path_code like '"
+
actionBody
.
pathCode
+
"%'"
;
if
(
actionBody
.
productName
){
sql
+=
" and item_name like '%"
+
actionBody
.
productName
+
"%'"
}
var
list
=
await
this
.
customQuery
(
sql
);
var
list
=
await
this
.
customQuery
(
sql
);
return
system
.
getResultSuccess
(
list
);
return
system
.
getResultSuccess
(
list
);
}
}
...
...
center-app/app/base/service/impl/utilsSve/utilstlbankSve.js
View file @
f28a9afe
...
@@ -31,6 +31,14 @@ class utilsTlBankSve extends AppServiceBase {
...
@@ -31,6 +31,14 @@ class utilsTlBankSve extends AppServiceBase {
}
}
return
system
.
getResultSuccess
(
item
);
return
system
.
getResultSuccess
(
item
);
}
}
async
getAppItemByAppkey
(
uappId
)
{
//根据appKey获取应用信息
var
item
=
await
this
.
appDao
.
getItemByAppKey
(
uappId
);
if
(
!
item
)
{
return
system
.
getResult
(
null
,
"应用数据为空"
);
}
return
system
.
getResultSuccess
(
item
);
}
//-------------------------------------------h5支付-----------------开始
//-------------------------------------------h5支付-----------------开始
/**
/**
...
...
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