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
6bdb1878
Commit
6bdb1878
authored
Nov 19, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
6fe1cfff
0fc48989
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
18 deletions
+38
-18
center-channel/app/base/api/impl/icp/consultation.js
+6
-1
center-channel/app/base/api/impl/icp/order.js
+0
-1
center-channel/app/base/service/impl/common/baseCenterOrderSve.js
+3
-1
center-channel/app/base/service/impl/common/centerorderSve.js
+6
-0
center-channel/app/base/service/impl/common/ncSve.js
+3
-1
center-channel/app/base/service/impl/common/rtSve.js
+3
-1
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+7
-5
center-channel/app/base/utils/dingClient.js
+10
-8
No files found.
center-channel/app/base/api/impl/icp/consultation.js
View file @
6bdb1878
...
@@ -266,8 +266,13 @@ class Consultation extends APIBase {
...
@@ -266,8 +266,13 @@ class Consultation extends APIBase {
case
"HAINAN"
:
case
"HAINAN"
:
pobj
.
area
=
"海南"
;
pobj
.
area
=
"海南"
;
break
;
break
;
case
"GUANGZHOU"
:
pobj
.
area
=
"广州"
;
break
;
case
"SHENZHEN"
:
pobj
.
area
=
"深圳"
;
break
;
default
:
default
:
pobj
.
area
=
""
;
break
;
break
;
}
}
}
}
...
...
center-channel/app/base/api/impl/icp/order.js
View file @
6bdb1878
...
@@ -172,7 +172,6 @@ class Order extends APIBase {
...
@@ -172,7 +172,6 @@ class Order extends APIBase {
pobj
.
area
=
"34"
;
pobj
.
area
=
"34"
;
break
;
break
;
default
:
default
:
pobj
.
area
=
""
;
break
;
break
;
}
}
}
}
...
...
center-channel/app/base/service/impl/common/baseCenterOrderSve.js
View file @
6bdb1878
...
@@ -49,7 +49,9 @@ const cityLetter = {
...
@@ -49,7 +49,9 @@ const cityLetter = {
"内蒙古"
:
"NEIMENGGU"
,
"内蒙古"
:
"NEIMENGGU"
,
"西藏"
:
"XIZANG"
,
"西藏"
:
"XIZANG"
,
"外资"
:
"WAIZI"
,
"外资"
:
"WAIZI"
,
"海南"
:
"HAINAN"
"海南"
:
"HAINAN"
,
"广州"
:
"GUANGZHOU"
,
"深圳"
:
"SHENZHEN"
}
}
//baidu pinyinzhuanyong 2020-11-6
//baidu pinyinzhuanyong 2020-11-6
...
...
center-channel/app/base/service/impl/common/centerorderSve.js
View file @
6bdb1878
...
@@ -629,6 +629,12 @@ class CenterorderService extends AppServiceBase {
...
@@ -629,6 +629,12 @@ class CenterorderService extends AppServiceBase {
}
else
if
(
pobj
.
actionBody
.
channelItemCode
==
'7'
)
{
}
else
if
(
pobj
.
actionBody
.
channelItemCode
==
'7'
)
{
pobj
.
actionBody
.
regType
=
"baidu.edi"
;
pobj
.
actionBody
.
regType
=
"baidu.edi"
;
}
}
else
if
(
pobj
.
actionBody
.
channelItemCode
==
'NC'
)
{
pobj
.
actionBody
.
regType
=
"baidu.wangwen"
;
}
else
if
(
pobj
.
actionBody
.
channelItemCode
==
'RT'
)
{
pobj
.
actionBody
.
regType
=
"baidu.radiotv"
;
}
var
fqobj
=
{
var
fqobj
=
{
actionBody
:
{
actionBody
:
{
area
:
pobj
.
actionBody
.
province
,
area
:
pobj
.
actionBody
.
province
,
...
...
center-channel/app/base/service/impl/common/ncSve.js
View file @
6bdb1878
...
@@ -41,7 +41,9 @@ const cityLetter = {
...
@@ -41,7 +41,9 @@ const cityLetter = {
"内蒙古"
:
"NEIMENGGU"
,
"内蒙古"
:
"NEIMENGGU"
,
"西藏"
:
"XIZANG"
,
"西藏"
:
"XIZANG"
,
"外资"
:
"WAIZI"
,
"外资"
:
"WAIZI"
,
"海南"
:
"HAINAN"
"海南"
:
"HAINAN"
,
"广州"
:
"GUANGZHOU"
,
"深圳"
:
"SHENZHEN"
}
}
//百度拼音转义 2020-11-11 laolan
//百度拼音转义 2020-11-11 laolan
...
...
center-channel/app/base/service/impl/common/rtSve.js
View file @
6bdb1878
...
@@ -40,7 +40,9 @@ const cityLetter = {
...
@@ -40,7 +40,9 @@ const cityLetter = {
"内蒙古"
:
"NEIMENGGU"
,
"内蒙古"
:
"NEIMENGGU"
,
"西藏"
:
"XIZANG"
,
"西藏"
:
"XIZANG"
,
"外资"
:
"WAIZI"
,
"外资"
:
"WAIZI"
,
"海南"
:
"HAINAN"
"海南"
:
"HAINAN"
,
"广州"
:
"GUANGZHOU"
,
"深圳"
:
"SHENZHEN"
}
}
//百度拼音转义 2020-11-11 laolan
//百度拼音转义 2020-11-11 laolan
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
6bdb1878
...
@@ -1322,9 +1322,9 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1322,9 +1322,9 @@ class UtilsNeedService extends AppServiceBase {
* @param {*} actionBody
* @param {*} actionBody
*/
*/
async
submitNeed2
(
pobj
,
actionBody
)
{
async
submitNeed2
(
pobj
,
actionBody
)
{
if
(
actionBody
.
type
==
"esp.wangwen"
||
actionBody
.
type
==
"esp.food"
)
{
//
if (actionBody.type == "esp.wangwen" || actionBody.type == "esp.food") {
actionBody
.
area
=
this
.
wangwenAreaChange
(
actionBody
.
area
)
//
actionBody.area = this.wangwenAreaChange(actionBody.area)
}
//
}
if
(
!
actionBody
.
intentionBizId
)
{
if
(
!
actionBody
.
intentionBizId
)
{
return
system
.
getResult
(
null
,
"actionBody.intentionBizId can not be empty,100380"
);
return
system
.
getResult
(
null
,
"actionBody.intentionBizId can not be empty,100380"
);
}
}
...
@@ -1348,8 +1348,10 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -1348,8 +1348,10 @@ class UtilsNeedService extends AppServiceBase {
pobj
.
actionBody
.
type
=
"baidu.icp"
;
pobj
.
actionBody
.
type
=
"baidu.icp"
;
}
else
if
(
pobj
.
actionBody
.
channel_type_code
==
7
)
{
}
else
if
(
pobj
.
actionBody
.
channel_type_code
==
7
)
{
pobj
.
actionBody
.
type
=
"baidu.edi"
;
pobj
.
actionBody
.
type
=
"baidu.edi"
;
}
else
if
(
pobj
.
actionBody
.
channel_type_code
==
"tmjy"
)
{
}
else
if
(
pobj
.
actionBody
.
channel_type_code
==
"NC"
)
{
pobj
.
actionBody
.
type
=
"baidu.tmd"
;
pobj
.
actionBody
.
type
=
"baidu.wangwen"
;
}
else
if
(
pobj
.
actionBody
.
channel_type_code
==
"RT"
)
{
pobj
.
actionBody
.
type
=
"baidu.radiotv"
;
}
}
if
(
pobj
.
actionBody
.
description
&&
pobj
.
actionBody
.
description
.
indexOf
(
"备#"
)
<
0
)
{
if
(
pobj
.
actionBody
.
description
&&
pobj
.
actionBody
.
description
.
indexOf
(
"备#"
)
<
0
)
{
pobj
.
actionBody
.
level
=
"A"
;
pobj
.
actionBody
.
level
=
"A"
;
...
...
center-channel/app/base/utils/dingClient.js
View file @
6bdb1878
...
@@ -6,14 +6,16 @@ class dingClient {
...
@@ -6,14 +6,16 @@ class dingClient {
}
}
//推送峰擎异常提醒
//推送峰擎异常提醒
async
gatewayPushError
(
err
)
{
async
gatewayPushError
(
err
)
{
let
c
=
`注意提醒:阿里->推送峰擎异常,老板们加油,加油,加油 !!!
${
JSON
.
stringify
(
err
)}
`
if
(
process
.
env
.
APP_ENV
===
"prod"
)
{
let
t
=
new
Date
().
toLocaleString
()
let
c
=
`注意提醒:阿里->推送峰擎异常,老板们加油,加油,加油 !!!
${
JSON
.
stringify
(
err
)}
`
this
.
execClient
.
execPost
({
let
t
=
new
Date
().
toLocaleString
()
"msgtype"
:
"text"
,
this
.
execClient
.
execPost
({
"text"
:
{
"content"
:
t
+
c
}
"msgtype"
:
"text"
,
},
this
.
gatewayurl
).
catch
(
alierr
=>
{
"text"
:
{
"content"
:
t
+
c
}
console
.
log
(
alierr
)
},
this
.
gatewayurl
).
catch
(
alierr
=>
{
});
console
.
log
(
alierr
)
});
}
}
}
}
}
module
.
exports
=
dingClient
;
module
.
exports
=
dingClient
;
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