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
52e7c894
Commit
52e7c894
authored
Jul 03, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改积分明细api方法,已发生产合并代码
parent
4a048251
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
api/api.ts
+18
-2
environments/environment.ts
+1
-1
No files found.
api/api.ts
View file @
52e7c894
import
request
from
"../util/request"
;
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"
;
}
from
"../environments/environment"
;
export
default
{
export
default
{
...
@@ -474,16 +474,32 @@ export default {
...
@@ -474,16 +474,32 @@ export default {
},
},
//薪资信息
//薪资信息
salaryCondition
(
params
)
{
salaryCondition
(
params
)
{
// 只有当地址栏是 HTTP 时,才允许用 HTTP 绝对路径
// 只有当地址栏是 HTTP 时,才允许用 HTTP 绝对路径
if
(
location
.
protocol
===
'http:'
)
{
if
(
location
.
protocol
===
'http:'
)
{
return
request
(
`
${
csfUrl
}
/csf/api/salary/condition/list`
,
'POST'
,
params
);
return
request
(
`
${
csfUrl
}
/csf/api/salary/condition/list`
,
'POST'
,
params
);
}
else
{
}
else
{
if
(
env
==
'dev'
){
// HTTPS 下只能走相对路径(依赖 Nginx 代理转发)
// HTTPS 下只能走相对路径(依赖 Nginx 代理转发)
return
request
(
`/csf/api/salary/condition/list`
,
'POST'
,
params
);
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
)
{
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 @
52e7c894
...
@@ -31,7 +31,7 @@ const prod = {
...
@@ -31,7 +31,7 @@ const prod = {
img_url
:
'https://app.ydhomeoffice.cn'
,
img_url
:
'https://app.ydhomeoffice.cn'
,
scrm_url
:
'https://m.zuihuibi.cn'
,
scrm_url
:
'https://m.zuihuibi.cn'
,
file_query_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: '1', cffp
// companyType: '2', appYdhomeoffice
// 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