Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
ybf
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xulili
ybf
Commits
24235ac6
Commit
24235ac6
authored
Mar 17, 2020
by
Z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Z: Dot: 更改 corpId 和 agentId.
parent
cecad675
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
12 deletions
+20
-12
aCommon.js
ybf_wx/src/utils/aCommon.js
+8
-6
aRequest.js
ybf_wx/src/utils/aRequest.js
+4
-2
aWxRequest.js
ybf_wx/src/utils/aWxRequest.js
+4
-2
home.vue
ybf_wx/src/views/home.vue
+4
-2
No files found.
ybf_wx/src/utils/aCommon.js
View file @
24235ac6
...
...
@@ -7,8 +7,10 @@ const zlog = console.log.bind(console)
// Z-BasicInfo
let
INFO
=
{
corpId
:
'wwd1cdbca7b8b2b6c4'
,
agentId
:
'1000015'
,
// corpId: 'wwd1cdbca7b8b2b6c4',
// agentId: '1000015',
corpId
:
'ww4df265003b43fa0d'
,
agentId
:
'1000032'
,
}
async
function
getXToken
()
{
...
...
@@ -278,8 +280,8 @@ function getUnionid(to) {
if
(
res
.
err_msg
==
"getCurExternalContact:ok"
)
{
let
header
=
{
token
:
sessionStorage
.
getItem
(
'XToken'
),
corpId
:
'wwd1cdbca7b8b2b6c4'
,
agentId
:
'1000015'
,
corpId
:
INFO
.
corpId
,
agentId
:
INFO
.
agentId
,
}
let
postData
=
{
userId
:
res
.
userId
...
...
@@ -303,8 +305,8 @@ function getUserInfo(inData) {
if
(
res
.
err_msg
==
"getUserInfo:ok"
)
{
let
header
=
{
token
:
sessionStorage
.
getItem
(
'XToken'
),
corpId
:
'wwd1cdbca7b8b2b6c4'
,
agentId
:
'1000015'
,
corpId
:
INFO
.
corpId
,
agentId
:
INFO
.
agentId
,
}
let
postData
=
{
code
:
inData
.
code
...
...
ybf_wx/src/utils/aRequest.js
View file @
24235ac6
...
...
@@ -8,8 +8,10 @@ import envConfig from '@/config/env-config'
// const testEnv = require('../../config/dev.env')
// Z-BasicInfo
let
INFO
=
{
corpId
:
'wwd1cdbca7b8b2b6c4'
,
agentId
:
'1000015'
,
// corpId: 'wwd1cdbca7b8b2b6c4',
// agentId: '1000015',
corpId
:
'ww4df265003b43fa0d'
,
agentId
:
'1000032'
,
// url: 'http://139.155.48.151:8085',
url
:
envConfig
.
appBaseUrlA
,
}
...
...
ybf_wx/src/utils/aWxRequest.js
View file @
24235ac6
...
...
@@ -6,8 +6,10 @@ export function wxRequest(inUrl, data = {}, header = {}, method = 'post') {
// Z-BasicInfo
let
INFO
=
{
corpId
:
'wwd1cdbca7b8b2b6c4'
,
agentId
:
'1000015'
,
// corpId: 'wwd1cdbca7b8b2b6c4',
// agentId: '1000015',
corpId
:
'ww4df265003b43fa0d'
,
agentId
:
'1000032'
,
// url: 'http://139.155.48.151:8085' + inUrl,
url
:
envConfig
.
appBaseUrlA
+
inUrl
,
}
...
...
ybf_wx/src/views/home.vue
View file @
24235ac6
...
...
@@ -167,8 +167,10 @@ export default {
code
:
this
.
zcache
.
code
};
let
headerData
=
{
agentId
:
"1000015"
,
corpId
:
"wwd1cdbca7b8b2b6c4"
// agentId: "1000015",
// corpId: "wwd1cdbca7b8b2b6c4",
agentId
:
"1000032"
,
corpId
:
"ww4df265003b43fa0d"
};
// url: "http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo",
...
...
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