Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
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
1
Merge Requests
1
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
Chao Sun
CFFP-HB
Commits
ad8ab7bb
Commit
ad8ab7bb
authored
Jul 03, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' into 'wyz'
修改积分明细api方法,已发生产合并代码 See merge request
!119
parents
e06f9d32
52e7c894
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
api/api.ts
+20
-4
environments/environment.ts
+1
-1
No files found.
api/api.ts
View file @
ad8ab7bb
import
request
from
"../util/request"
;
import
{
baseURL
,
apiURL
,
cffpURL
,
sfpUrl
,
imgUrl
,
scrmUrl
,
csfUrl
,
import
{
baseURL
,
apiURL
,
cffpURL
,
sfpUrl
,
imgUrl
,
scrmUrl
,
csfUrl
,
env
}
from
"../environments/environment"
;
export
default
{
...
...
@@ -474,16 +474,32 @@ export default {
},
//薪资信息
salaryCondition
(
params
)
{
// 只有当地址栏是 HTTP 时,才允许用 HTTP 绝对路径
if
(
location
.
protocol
===
'http:'
)
{
return
request
(
`
${
csfUrl
}
/csf/api/salary/condition/list`
,
'POST'
,
params
);
}
else
{
// HTTPS 下只能走相对路径(依赖 Nginx 代理转发)
return
request
(
`/csf/api/salary/condition/list`
,
'POST'
,
params
);
if
(
env
==
'dev'
){
// HTTPS 下只能走相对路径(依赖 Nginx 代理转发)
return
request
(
`/csf/api/salary/condition/list`
,
'POST'
,
params
);
}
else
if
(
env
==
'prod'
){
return
request
(
`
${
csfUrl
}
/api/csf/api/salary/condition/list`
,
'POST'
,
params
);
}
}
},
//薪资信息
salaryDetail
(
salaryBizId
)
{
return
request
(
`/csf/api/salary/detail?salaryBizId=
${
salaryBizId
}
`
,
'GET'
)
// return request(`/csf/api/salary/detail?salaryBizId=${salaryBizId}`,'GET')
if
(
location
.
protocol
===
'http:'
)
{
return
request
(
`
${
csfUrl
}
/csf/api/salary/detail?salaryBizId=
${
salaryBizId
}
`
,
'GET'
);
}
else
{
if
(
env
==
'dev'
){
// HTTPS 下只能走相对路径(依赖 Nginx 代理转发)
return
request
(
`/csf/api/salary/detail?salaryBizId=
${
salaryBizId
}
`
,
'GET'
);
}
else
if
(
env
==
'prod'
){
return
request
(
`
${
csfUrl
}
/api/csf/api/salary/detail?salaryBizId=
${
salaryBizId
}
`
,
'GET'
);
}
}
},
}
environments/environment.ts
View file @
ad8ab7bb
...
...
@@ -31,7 +31,7 @@ const prod = {
img_url
:
'https://app.ydhomeoffice.cn'
,
scrm_url
:
'https://m.zuihuibi.cn'
,
file_query_url
:
'https://m.zuihuibi.cn'
,
csf_url
:
'https://
center.supguard.cn
'
,
csf_url
:
'https://
web.csf.hk
'
,
}
// companyType: '1', cffp
// companyType: '2', appYdhomeoffice
...
...
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