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
7b0d2221
Commit
7b0d2221
authored
Mar 30, 2021
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除多余的代码
parent
b8f9a8bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
18 deletions
+47
-18
center-channel/app/base/service/impl/common/signSve.js
+14
-14
center-channel/app/base/service/impl/utilsSve/utilsFqAliyunSve.js
+33
-4
No files found.
center-channel/app/base/service/impl/common/signSve.js
View file @
7b0d2221
...
@@ -115,7 +115,7 @@ class SignService{
...
@@ -115,7 +115,7 @@ class SignService{
}
}
module
.
exports
=
SignService
;
module
.
exports
=
SignService
;
//
var task = new SignService();
var
task
=
new
SignService
();
// var obj = {
// var obj = {
// "actionType": "serviceProviderSubmitMaterial",
// "actionType": "serviceProviderSubmitMaterial",
// "actionBody": {
// "actionBody": {
...
@@ -190,15 +190,15 @@ module.exports = SignService;
...
@@ -190,15 +190,15 @@ module.exports = SignService;
// "bizScope":"经营范围",
// "bizScope":"经营范围",
// "hasAddress":true
// "hasAddress":true
// };
// };
// //需求
//需求
// var obj={
var
obj
=
{
// "intentionBizId": "baidu_test_00085",
"intentionBizId"
:
"baidu_test_00086"
,
// "phone": "18506013355",
"phone"
:
"18506013355"
,
// "userName": "测试03",
"userName"
:
"测试03"
,
// "description": "测试03描述",
"description"
:
"测试03描述"
,
// "area": "上海",
"area"
:
"上海"
,
// "consultType": "7"
"consultType"
:
"7"
// };
};
// task.createSign(obj,"7cbb892450174167b5c7e01we4716t51").then(sign=>{
task
.
createSign
(
obj
,
"7cbb892450174167b5c7e01we4716t51"
).
then
(
sign
=>
{
// console.log(sign,"..............Sign");
console
.
log
(
sign
,
"..............Sign"
);
// });
});
\ No newline at end of file
\ No newline at end of file
center-channel/app/base/service/impl/utilsSve/utilsFqAliyunSve.js
View file @
7b0d2221
...
@@ -117,10 +117,12 @@ class UtilsFqAliyunService extends AppServiceBase {
...
@@ -117,10 +117,12 @@ class UtilsFqAliyunService extends AppServiceBase {
this
.
execClientNew
.
execLogs
(
`utilsFqAliyunSve-opAliyunClientPost-result:url=
${
url
}
`
,
pobj
,
"center-channel-opAliyunClientPost"
,
rtn
,
null
);
this
.
execClientNew
.
execLogs
(
`utilsFqAliyunSve-opAliyunClientPost-result:url=
${
url
}
`
,
pobj
,
"center-channel-opAliyunClientPost"
,
rtn
,
null
);
console
.
log
(
rtn
,
".....................opAliyunClientPost.........................11111111......"
)
console
.
log
(
rtn
,
".....................opAliyunClientPost.........................11111111......"
)
console
.
log
(
JSON
.
stringify
(
rtn
),
".....................opAliyunClientPost............22222..................."
)
console
.
log
(
JSON
.
stringify
(
rtn
),
".....................opAliyunClientPost............22222..................."
)
if
(
rtn
.
success
.
toString
()
===
"true"
&&
rtn
.
code
.
toString
()
===
"200"
)
{
console
.
log
(
rtn
.
success
,
".....................opAliyunClientPost............3333..................."
)
console
.
log
(
rtn
.
code
,
".....................opAliyunClientPost............4444..................."
)
if
(
rtn
.
success
&&
rtn
.
code
==
200
)
{
return
system
.
getResultSuccess
(
rtn
.
data
,
"推送成功"
);
return
system
.
getResultSuccess
(
rtn
.
data
,
"推送成功"
);
}
else
{
}
else
{
return
system
.
getResultFail
(
-
1
,
`推送失败,失败原因:
${
JSON
.
stringify
(
rtn
)}
`
);
return
system
.
getResultFail
(
-
1
,
`推送失败,失败原因
11
:
${
JSON
.
stringify
(
rtn
)}
`
);
}
}
}
catch
(
e
)
{
}
catch
(
e
)
{
const
stackStr
=
e
.
stack
?
e
.
stack
:
JSON
.
stringify
(
e
);
const
stackStr
=
e
.
stack
?
e
.
stack
:
JSON
.
stringify
(
e
);
...
@@ -179,6 +181,33 @@ class UtilsFqAliyunService extends AppServiceBase {
...
@@ -179,6 +181,33 @@ class UtilsFqAliyunService extends AppServiceBase {
}
}
//--------------------------------------------------内部辅助方法-------------------end-----------------
//--------------------------------------------------内部辅助方法-------------------end-----------------
// async tttt(){
// let rtn={
// "requestId":null,
// "code":"200",
// "data":{
// "_id":"261931196584429568",
// "operator":"null",
// "operator_name":null,
// "customer":"261918243919368192"
// },
// "success":true,
// "errorCode":"OK",
// "errorMessage":"操作成功",
// "timestamp":"2021-03-30T16:45:15.730+0800"
// }
// if (rtn.success && rtn.code == 200) {
// console.log(11111)
// } else {
// console.log(22222)
// }
//
// }
}
}
module
.
exports
=
UtilsFqAliyunService
;
module
.
exports
=
UtilsFqAliyunService
;
\ No newline at end of file
// let tmp=new UtilsFqAliyunService();
// tmp.tttt();
\ No newline at end of file
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