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
73b80c98
Commit
73b80c98
authored
Nov 06, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Plain Diff
lin pannong
parents
729fad29
a8dc991e
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
190 additions
and
22 deletions
+190
-22
center-channel/app/base/api/impl/action/tmQuery.js
+3
-0
center-channel/app/base/api/impl/icp/feedback.js
+2
-1
center-channel/app/base/api/impl/icp/order.js
+136
-0
center-channel/app/base/api/impl/opreceive/need.js
+3
-0
center-channel/app/base/service/impl/common/centerorderSve.js
+1
-1
center-channel/app/base/service/impl/common/signSve.js
+7
-14
center-channel/app/base/service/impl/trademark/tmquerySve.js
+7
-0
center-channel/app/base/service/impl/utilsSve/utilsDeliverSystemSve.js
+1
-2
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+26
-0
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+3
-3
center-channel/app/config/businessConfig.js
+1
-1
No files found.
center-channel/app/base/api/impl/action/tmQuery.js
View file @
73b80c98
...
@@ -30,6 +30,9 @@ class TmQueryAPI extends WEBBase {
...
@@ -30,6 +30,9 @@ class TmQueryAPI extends WEBBase {
case
"test"
:
//测试
case
"test"
:
//测试
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
break
;
break
;
case
"tmTest"
:
opResult
=
await
this
.
tmquerySve
.
test
(
pobj
);
break
;
case
"findTrademarkNameAccurate"
:
//商标精确检索(相同商标检索)
case
"findTrademarkNameAccurate"
:
//商标精确检索(相同商标检索)
opResult
=
await
this
.
tmquerySve
.
findTrademarkNameAccurate
(
action_body
,
req
);
opResult
=
await
this
.
tmquerySve
.
findTrademarkNameAccurate
(
action_body
,
req
);
break
;
break
;
...
...
center-channel/app/base/api/impl/icp/feedback.js
View file @
73b80c98
...
@@ -51,12 +51,13 @@ class Feedback extends APIBase {
...
@@ -51,12 +51,13 @@ class Feedback extends APIBase {
if
(
!
pobj
.
intentionStatus
)
{
if
(
!
pobj
.
intentionStatus
)
{
return
self
.
getResultFail
(
"intentionStatus不能为空"
);
return
self
.
getResultFail
(
"intentionStatus不能为空"
);
}
}
pobj
.
action_type
=
"icpFeedbackSubmitNew"
;
var
param
=
{
var
param
=
{
requestId
:
req
.
requestId
||
self
.
getUUID
(),
requestId
:
req
.
requestId
||
self
.
getUUID
(),
requestUrl
:
"/icp/feedback/submit"
,
requestUrl
:
"/icp/feedback/submit"
,
requestjson
:
JSON
.
stringify
(
pobj
),
//请求地址
requestjson
:
JSON
.
stringify
(
pobj
),
//请求地址
pushUrl
:
"/action/intentionapi/springBoard"
,
//调用地址
pushUrl
:
"/action/intentionapi/springBoard"
,
//调用地址
pushActionType
:
"icpFeedbackSubmit"
,
//调用参数
pushActionType
:
"icpFeedbackSubmit
New
"
,
//调用参数
pushtimes
:
0
,
//推送次数
pushtimes
:
0
,
//推送次数
pushStatus
:
"wts"
,
//推送状态
pushStatus
:
"wts"
,
//推送状态
}
}
...
...
center-channel/app/base/api/impl/icp/order.js
View file @
73b80c98
...
@@ -67,6 +67,118 @@ class Order extends APIBase {
...
@@ -67,6 +67,118 @@ class Order extends APIBase {
}
}
}
}
pobj
.
action_type
=
"icpOrderStatus"
;
pobj
.
action_type
=
"icpOrderStatus"
;
if
(
pobj
.
area
)
{
switch
(
pobj
.
area
)
{
case
"BEIJING"
:
pobj
.
area
=
"1"
;
break
;
case
"SHANGHAI"
:
pobj
.
area
=
"2"
;
break
;
case
"FUJIAN"
:
pobj
.
area
=
"3"
;
break
;
case
"GUANGXI"
:
pobj
.
area
=
"4"
;
break
;
case
"GUANGDONG"
:
pobj
.
area
=
"5"
;
break
;
case
"ANHUI"
:
pobj
.
area
=
"6"
;
break
;
case
"HENAN"
:
pobj
.
area
=
"7"
;
break
;
case
"HUBEI"
:
pobj
.
area
=
"8"
;
break
;
case
"ZHEJIANG"
:
pobj
.
area
=
"9"
;
break
;
case
"JIANGSU"
:
pobj
.
area
=
"10"
;
break
;
case
"SHANDONG"
:
pobj
.
area
=
"11"
;
break
;
case
"SHANGXI_SHAN"
:
pobj
.
area
=
"12"
;
break
;
case
"NINGXIA"
:
pobj
.
area
=
"13"
;
break
;
case
"GANSU"
:
pobj
.
area
=
"14"
;
break
;
case
"XINJIANG"
:
pobj
.
area
=
"15"
;
break
;
case
"QINGHAI"
:
pobj
.
area
=
"16"
;
break
;
case
"TIANJIN"
:
pobj
.
area
=
"17"
;
break
;
case
"CHONGQING"
:
pobj
.
area
=
"18"
;
break
;
case
"HEBEI"
:
pobj
.
area
=
"19"
;
break
;
case
"SHANXI_JIN"
:
pobj
.
area
=
"20"
;
break
;
case
"LIAONING"
:
pobj
.
area
=
"21"
;
break
;
case
"JINLIN"
:
pobj
.
area
=
"22"
;
break
;
case
"HEILONGJIANG"
:
pobj
.
area
=
"23"
;
break
;
case
"JIANGXI"
:
pobj
.
area
=
"24"
;
break
;
case
"HUNAN"
:
pobj
.
area
=
"25"
;
break
;
case
"SICHUAN"
:
pobj
.
area
=
"26"
;
break
;
case
"GUIZHOU"
:
pobj
.
area
=
"27"
;
break
;
case
"YUNNAN"
:
pobj
.
area
=
"28"
;
break
;
case
"NEIMENGGU"
:
pobj
.
area
=
"29"
;
break
;
case
"XIZANG"
:
pobj
.
area
=
"30"
;
break
;
case
"HANWAIZI"
:
pobj
.
area
=
"31"
;
break
;
case
"QUANWAIZI"
:
pobj
.
area
=
"31"
;
break
;
case
"WAIZI"
:
pobj
.
area
=
"31"
;
break
;
case
"HAINAN"
:
pobj
.
area
=
"34"
;
break
;
default
:
pobj
.
area
=
""
;
break
;
}
}
if
(
!
pobj
.
area
)
{
return
self
.
getResultFail
(
"area参数错误"
);
}
var
param
=
{
var
param
=
{
requestId
:
req
.
requestId
||
self
.
getUUID
(),
requestId
:
req
.
requestId
||
self
.
getUUID
(),
requestUrl
:
"/icp/order/notify"
,
requestUrl
:
"/icp/order/notify"
,
...
@@ -80,5 +192,28 @@ class Order extends APIBase {
...
@@ -80,5 +192,28 @@ class Order extends APIBase {
return
self
.
getResultSuccess
(
param
.
requestId
);
return
self
.
getResultSuccess
(
param
.
requestId
);
}
}
async
close
(
pobj
,
obj
,
req
){
var
self
=
this
;
if
(
!
pobj
.
appInfo
||
!
pobj
.
appInfo
.
uapp_key
||
!
pobj
.
appInfo
.
uapp_secret
){
return
self
.
getResultFail
(
"未知应用或应用未启用"
);
}
if
(
!
pobj
.
orderNo
)
{
return
self
.
getResultFail
(
"orderNo不能为空"
);
}
pobj
.
channelOrderNo
=
pobj
.
orderNo
;
pobj
.
action_type
=
"icpOrderClose"
;
var
param
=
{
requestId
:
req
.
requestId
||
self
.
getUUID
(),
requestUrl
:
"/icp/order/close"
,
requestjson
:
JSON
.
stringify
(
pobj
),
//请求地址
pushUrl
:
"/action/intentionapi/springBoard"
,
//调用地址
pushActionType
:
"icpOrderClose"
,
//调用参数
pushtimes
:
0
,
//推送次数
pushStatus
:
"wts"
,
//推送状态
}
await
self
.
gatewaypushlogSve
.
create
(
param
);
return
self
.
getResultSuccess
(
param
.
requestId
);
}
}
}
module
.
exports
=
Order
;
module
.
exports
=
Order
;
\ No newline at end of file
center-channel/app/base/api/impl/opreceive/need.js
View file @
73b80c98
...
@@ -105,6 +105,9 @@ class Need extends APIBase {
...
@@ -105,6 +105,9 @@ class Need extends APIBase {
opResult
=
await
self
.
centerorderSve
.
icppaysuccessNew
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
self
.
centerorderSve
.
icppaysuccessNew
(
pobj
,
pobj
.
actionBody
);
}
}
break
;
break
;
case
"icpOrderClose"
:
//关闭ICP订单
opResult
=
await
this
.
utilsNeedSve
.
icpOrderClose
(
pobj
,
pobj
.
actionBody
);
break
;
//-----------接入百度ICP------end----------------------------------
//-----------接入百度ICP------end----------------------------------
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
...
...
center-channel/app/base/service/impl/common/centerorderSve.js
View file @
73b80c98
...
@@ -647,7 +647,7 @@ class CenterorderService extends AppServiceBase {
...
@@ -647,7 +647,7 @@ class CenterorderService extends AppServiceBase {
if
(
addRes
&&
addRes
.
stdout
)
{
if
(
addRes
&&
addRes
.
stdout
)
{
var
salesmanRes
=
JSON
.
parse
(
addRes
.
stdout
);
var
salesmanRes
=
JSON
.
parse
(
addRes
.
stdout
);
if
(
salesmanRes
.
status
==
0
)
{
if
(
salesmanRes
.
status
==
0
)
{
deliveryObj
.
needsolution
=
salesmanRes
.
data
;
deliveryObj
.
actionBody
.
needsolution
=
salesmanRes
.
data
;
await
this
.
utilsPushSve
.
baiduBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
await
this
.
utilsPushSve
.
baiduBusiness2Delivery
(
deliveryObj
,
"pushDeliveryOrder"
);
}
}
}
}
...
...
center-channel/app/base/service/impl/common/signSve.js
View file @
73b80c98
...
@@ -119,26 +119,18 @@ module.exports = SignService;
...
@@ -119,26 +119,18 @@ module.exports = SignService;
// });
// });
// var obj = {
// var obj = {
// "bizId":"202011031421",
// "orderNo":"c76a7c1a0cf747db92e9fc6beab770f0",
// "contactName":"lin",
// "remark":"lin"
// "contactMobile":"13911391996",
// "timeUnit":"year",
// "quantity":1,
// "companyInfo":{
// "companyName":"公司宝",
// "taxpayerType":"NORMAL_TAXPAYER",
// "acctgSystemId":"10001",
// "companyForm":"1",
// "industry":"1",
// "taxpayerNumber":"123456789",
// "companyArea":"北京"
// }
// }
// }
<<<<<<<
HEAD
// var obj = {
// var obj = {
// "bizId":"202011031421",
// "bizId":"202011031421",
// "status":"16"
// "status":"16"
// }
// }
// task.createSign(obj,"7cbb892450174167b5c7e01we4717z51").then(d=>{
// task.createSign(obj,"7cbb892450174167b5c7e01we4717z51").then(d=>{
=======
// task.createSign(obj,"7cbb892450174167b5c7e01we4716t51").then(d=>{
>>>>>>>
a8dc991e567d80250a6bc02b620c18da1c7f0fc9
// console.log(d,"!!!!!!!!!!!!!!!!!!!!!!!!!!");
// console.log(d,"!!!!!!!!!!!!!!!!!!!!!!!!!!");
// });
// });
\ No newline at end of file
center-channel/app/base/service/impl/trademark/tmquerySve.js
View file @
73b80c98
...
@@ -150,5 +150,12 @@ class TmqueryService {
...
@@ -150,5 +150,12 @@ class TmqueryService {
return
data
;
return
data
;
}
}
async
test
(
pobj
){
let
url
=
settings
.
centerOrderUrl
()
+
'notifyaction/internalCallsNotify/updateTmStatus'
;
let
result
=
await
this
.
execClient
.
execPost
(
pobj
.
actionBody
,
url
);
return
result
;
}
}
}
module
.
exports
=
TmqueryService
;
module
.
exports
=
TmqueryService
;
center-channel/app/base/service/impl/utilsSve/utilsDeliverSystemSve.js
View file @
73b80c98
...
@@ -36,8 +36,7 @@ class UtilsDeliverSystemService extends AppServiceBase {
...
@@ -36,8 +36,7 @@ class UtilsDeliverSystemService extends AppServiceBase {
},
},
requestId
:
pobj
.
requestId
||
""
// N 请求id
requestId
:
pobj
.
requestId
||
""
// N 请求id
}
}
await
this
.
opQueuePushClientPost
(
pobj
,
this
.
opPushQueueUrl
,
reqParams
);
this
.
opQueuePushClientPost
(
pobj
,
this
.
opPushQueueUrl
,
reqParams
);
}
}
//--------------------------------------------------内部辅助方法-------------------start-----------------
//--------------------------------------------------内部辅助方法-------------------start-----------------
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
73b80c98
...
@@ -1431,6 +1431,32 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1431,6 +1431,32 @@ class UtilsNeedService extends AppServiceBase {
}
//通知更新状态
}
//通知更新状态
return
rtn
;
return
rtn
;
}
}
//关闭icp订单
async
icpOrderClose
(
pobj
)
{
var
actionBody
=
pobj
.
actionBody
;
var
self
=
this
;
var
url
=
settings
.
centerOrderUrl
()
+
"action/qcapi/springBoard"
;
var
rtn
=
await
this
.
restPostUrl
(
pobj
,
url
);
if
(
rtn
.
status
==
0
&&
rtn
.
data
)
{
pobj
.
actionBody
.
orderNo
=
rtn
.
data
.
orderNo
;
var
orderrtn
=
await
self
.
utilsOrderSve
.
delOrder
(
pobj
,
pobj
.
actionBody
);
if
(
orderrtn
.
status
<
0
)
{
return
system
.
getResultFail
(
-
5022
,
"订单关闭失败"
);
}
var
tmpObj
=
{
actionBody
:
{
orderNo
:
rtn
.
data
.
orderNo
,
channelNeedNo
:
rtn
.
data
.
channelNeedNo
,
needsolution
:
rtn
.
data
.
solutionContent
},
appInfo
:
pobj
.
appInfo
}
this
.
utilsPushSve
.
baiduBusiness2Delivery
(
tmpObj
,
"pushDeliveryStatusNotify"
);
tmpObj
.
actionBody
.
orderNo
=
rtn
.
data
.
channelSolutionNo
;
self
.
utilsPushSve
.
baiduBusiness2Fq
(
tmpObj
,
"pushOrderICPClose"
);
}
//通知更新状态
return
rtn
;
}
//-----------接入百度ICP------end----------------------------------
//-----------接入百度ICP------end----------------------------------
}
}
...
...
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
73b80c98
...
@@ -48,9 +48,9 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -48,9 +48,9 @@ class UtilsOrderService extends AppServiceBase {
}
}
console
.
log
(
"buyTotalSum"
,
buyTotalSum
)
console
.
log
(
"buyTotalSum"
,
buyTotalSum
)
console
.
log
(
"totalSum"
,
totalSum
)
console
.
log
(
"totalSum"
,
totalSum
)
//
if (buyTotalSum < totalSum) {
if
(
buyTotalSum
<
totalSum
)
{
//
return system.getResult(null, "订单金额有误,100060");
return
system
.
getResult
(
null
,
"订单金额有误,100060"
);
//
}
}
let
tmpPriceList
=
[];
let
tmpPriceList
=
[];
pobj
.
actionBody
.
product_info
.
price_item
=
price_list
[
productIndex
];
pobj
.
actionBody
.
product_info
.
price_item
=
price_list
[
productIndex
];
tmpPriceList
.
push
(
pobj
.
actionBody
.
product_info
.
price_item
);
tmpPriceList
.
push
(
pobj
.
actionBody
.
product_info
.
price_item
);
...
...
center-channel/app/config/businessConfig.js
View file @
73b80c98
...
@@ -19,6 +19,6 @@ module.exports = {
...
@@ -19,6 +19,6 @@ module.exports = {
"putUserPwdByMobile"
,
"icpNotifyNew"
"putUserPwdByMobile"
,
"icpNotifyNew"
],
],
apiMustUserpinList
:
[
"submitNeed"
,
"paySuccess"
,
"icpNotify"
,
"getLoginInfo"
,
"icpNotifyNew"
,
"submitIcpProgramme"
,
"serviceProviderSubmitMaterial"
,
"abolishIcpProgramme"
,
"submitService"
],
apiMustUserpinList
:
[
"submitNeed"
,
"paySuccess"
,
"icpNotify"
,
"getLoginInfo"
,
"icpNotifyNew"
,
"submitIcpProgramme"
,
"serviceProviderSubmitMaterial"
,
"abolishIcpProgramme"
,
"submitService"
],
apiSecretPathList
:
[
"/api/icp/consultation/submit"
,
"/api/icp/feedback/submit"
,
"/api/icp/order/notify"
,
"/api/opreceive/service/create"
,
"/api/opreceive/service/notify"
]
apiSecretPathList
:
[
"/api/icp/consultation/submit"
,
"/api/icp/feedback/submit"
,
"/api/icp/order/notify"
,
"/api/opreceive/service/create"
,
"/api/
icp/order/close"
,
"/api/
opreceive/service/notify"
]
}
}
}
}
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