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
e0e1ceb3
Commit
e0e1ceb3
authored
Apr 12, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
1437f1df
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
23 deletions
+32
-23
center-channel/app/base/service/app.base.js
+23
-2
center-channel/app/base/service/impl/utilsSve/utilsFqAliyunSve.js
+1
-1
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+5
-5
center-channel/app/base/service/impl/utilsSve/utilsTmAliyunSve.js
+3
-15
No files found.
center-channel/app/base/service/app.base.js
View file @
e0e1ceb3
...
...
@@ -91,7 +91,7 @@ class AppServiceBase {
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"
center-channel/app/base/
service/impl/utilsSve/opAliyunClientPost.js/opAliyunRpcReq"
,
op
:
"service/impl/utilsSve/opAliyunClientPost.js/opAliyunRpcReq"
,
content
:
errorMsg
,
// clientIp: pobj.clientIp,
optitle
:
pobj
.
opType
+
"推送操作异常->opAliyunRpcReq"
,
...
...
@@ -119,7 +119,7 @@ class AppServiceBase {
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"
center-channel/app/base/
service/impl/utilsSve/opAliyunClientPost.js/opAliyunRpcReqByPost"
,
op
:
"service/impl/utilsSve/opAliyunClientPost.js/opAliyunRpcReqByPost"
,
content
:
errorMsg
,
// clientIp: pobj.clientIp,
optitle
:
pobj
.
opType
+
"推送操作异常->opAliyunRpcReqByPost"
,
...
...
@@ -171,6 +171,27 @@ class AppServiceBase {
result
.
data
=
null
;
return
result
;
}
async
getAliossjavaFileUrl
(
pobj
,
params
)
{
//上传ali oss 文件调用
try
{
var
aliOssFileInfo
=
await
this
.
execPostUrl
(
params
,
settings
.
aliossjavaUrl
());
if
(
aliOssFileInfo
)
{
var
fileUrl
=
params
.
filedir
+
"/"
+
params
.
objectName
;
return
system
.
getResultSuccess
(
fileUrl
);
}
return
system
.
getResult
(
null
,
"java ali oss upload fail"
);
}
catch
(
e
)
{
this
.
logCtl
.
error
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"service/app.base.js/getAliossjavaFileUrl"
,
content
:
"error:"
+
e
.
stack
,
// clientIp: pobj.clientIp,
optitle
:
pobj
.
opType
||
""
+
"aliossjava-upload阿里上传文件操作异常->getAliossjavaFileUrl"
,
});
return
system
.
getResult
(
-
200
,
"java ali oss upload error"
);
}
}
/*
返回20位业务订单号
prefix:业务前缀
...
...
center-channel/app/base/service/impl/utilsSve/utilsFqAliyunSve.js
View file @
e0e1ceb3
...
...
@@ -78,7 +78,7 @@ class UtilsFqAliyunService extends AppServiceBase {
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"
center-channel/app/base/
service/impl/utilsSve/opAliyunClientPost.js/opAliyunClientPost"
,
op
:
"service/impl/utilsSve/opAliyunClientPost.js/opAliyunClientPost"
,
content
:
"error:"
+
e
.
stack
,
// clientIp: pobj.clientIp,
optitle
:
pobj
.
opType
+
"推送操作异常->opAliyunClientPost"
,
...
...
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
e0e1ceb3
...
...
@@ -356,7 +356,7 @@ class UtilsOrderService extends AppServiceBase {
//日志记录
this
.
logCtl
.
info
({
optitle
:
(
new
Date
()).
Format
(
"yyyy-MM-dd hh:mm:ss"
)
+
"记录回调参数:,method="
+
parmas
.
trxcode
,
op
:
"
center-channel/app/base/
service/impl/utilsSve/utilsOrderSve.js/receiveCallBackNotify"
,
op
:
"service/impl/utilsSve/utilsOrderSve.js/receiveCallBackNotify"
,
content
:
JSON
.
stringify
(
parmas
),
clientIp
:
client_ip
||
""
});
...
...
@@ -389,7 +389,7 @@ class UtilsOrderService extends AppServiceBase {
//日志记录
this
.
logCtl
.
info
({
optitle
:
(
new
Date
()).
Format
(
"yyyy-MM-dd hh:mm:ss"
)
+
"回调处理订单参数:,method="
+
parmas
.
trxcode
,
op
:
"
center-channel/app/base/
service/impl/utilsSve/utilsOrderSve.js/opBackNotify"
,
op
:
"service/impl/utilsSve/utilsOrderSve.js/opBackNotify"
,
content
:
JSON
.
stringify
(
parmas
),
clientIp
:
client_ip
||
""
});
...
...
@@ -412,7 +412,7 @@ class UtilsOrderService extends AppServiceBase {
this
.
logCtl
.
info
({
appid
:
appInfo
.
uapp_id
,
appkey
:
appInfo
.
uapp_key
,
op
:
"
center-channel/app/base/
service/impl/utilsSve/utilsOrderSve.js/opBackNotify"
,
op
:
"service/impl/utilsSve/utilsOrderSve.js/opBackNotify"
,
content
:
"参数="
+
JSON
.
stringify
(
parmas
),
clientIp
:
parmas
.
client_ip
||
""
,
optitle
:
"通联回调操作频繁---太频繁了,太频繁了"
...
...
@@ -467,7 +467,7 @@ class UtilsOrderService extends AppServiceBase {
//日志记录
this
.
logCtl
.
info
({
optitle
:
(
new
Date
()).
Format
(
"yyyy-MM-dd hh:mm:ss"
)
+
"阿里钉钉支付回调参数信息"
,
op
:
"
center-channel/app/base/
service/impl/utilsSve/utilsOrderSve.js/opH5AliDingPayBackNotify"
,
op
:
"service/impl/utilsSve/utilsOrderSve.js/opH5AliDingPayBackNotify"
,
content
:
JSON
.
stringify
(
parmas
),
clientIp
:
client_ip
||
""
});
...
...
@@ -500,7 +500,7 @@ class UtilsOrderService extends AppServiceBase {
this
.
logCtl
.
info
({
appid
:
opResult
.
data
.
uappId
,
appkey
:
""
,
op
:
"
center-channel/app/base/
service/impl/utilsSve/utilsOrderSve.js/opH5AliDingPayBackNotify"
,
op
:
"service/impl/utilsSve/utilsOrderSve.js/opH5AliDingPayBackNotify"
,
content
:
"参数="
+
JSON
.
stringify
(
parmas
),
clientIp
:
parmas
.
client_ip
||
""
,
optitle
:
"阿里回调操作频繁---太频繁了,太频繁了"
...
...
center-channel/app/base/service/impl/utilsSve/utilsTmAliyunSve.js
View file @
e0e1ceb3
...
...
@@ -267,21 +267,9 @@ class UtilsTmAliyunService extends AppServiceBase {
"encodePolicy"
:
resultInfo
.
data
.
EncodedPolicy
,
"signature"
:
resultInfo
.
data
.
Signature
}
try
{
var
aliOssFileInfo
=
await
this
.
execPostUrl
(
params
,
settings
.
aliossjavaUrl
());
if
(
aliOssFileInfo
)
{
fileUrl
=
params
.
filedir
+
"/"
+
params
.
objectName
;
}
}
catch
(
e
)
{
this
.
logCtl
.
error
({
appid
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_id
||
""
:
""
,
appkey
:
pobj
.
appInfo
?
pobj
.
appInfo
.
uapp_key
||
""
:
""
,
requestId
:
pobj
.
requestId
||
""
,
op
:
"center-channel/app/base/service/impl/utilsSve/utilsTmAliyunSve.js/aliossjavaUrl"
,
content
:
"error:"
+
e
.
stack
,
// clientIp: pobj.clientIp,
optitle
:
pobj
.
opType
+
"aliossjava-upload阿里上传文件操作异常->getAliOssFileUrl->aliossjavaUrl"
,
});
var
ossFileResult
=
await
this
.
getAliossjavaFileUrl
(
pobj
,
params
);
if
(
ossFileResult
.
status
==
0
)
{
fileUrl
=
ossFileResult
.
data
;
}
return
fileUrl
;
}
...
...
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