Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aaba3bc5
authored
Aug 13, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 适配appid
1 parent
657f48e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
src/views/alipay/index.vue
src/views/alipay/index.vue
View file @
aaba3bc
...
...
@@ -119,16 +119,19 @@ export default {
userCollaborationName
:
''
,
userCollaborationCheck
:
false
,
isYqType
:
true
,
merchantDisabled
:
false
merchantDisabled
:
false
,
appId
:
''
}
},
mounted
()
{
const
that
=
this
//
console.log(baseConfig)
console
.
log
(
baseConfig
)
const
{
appId
}
=
baseConfig
// console.log(appId)
const
{
merchantName
,
merchantId
,
shopMerchantId
,
shopMerchantName
,
M
,
MN
,
SM
,
SMN
,
P
}
=
this
.
getHrefParams
()
this
.
paymentChannelId
=
P
this
.
appId
=
baseConfig
.
appidMap
[
this
.
paymentChannelId
]
||
appId
console
.
log
(
baseConfig
.
appidMap
[
this
.
paymentChannelId
],
this
.
appId
)
// 区分是流量方还是导流方
// this.getMiniAppConfig()
this
.
setMerchantDisabled
(
merchantId
||
shopMerchantId
)
...
...
@@ -149,7 +152,7 @@ export default {
try
{
// 请求用户授权
ap
.
getAuthCode
({
appId
,
appId
:
this
.
appId
,
scopes
:
[
'auth_base'
]
// 主动授权:auth_user,静默授权:auth_base。或者其它scope
},
function
(
res
)
{
// ap.alert(JSON.stringify(res))
...
...
@@ -291,12 +294,12 @@ export default {
// merchantId,
// openId,
isMinipg
:
1
,
appid
:
baseConfig
.
appId
,
appid
:
this
.
appId
,
subOpenid
:
userId
,
oprBy
:
userId
,
receivedMoney
:
payMoney
*
100
,
payType
:
4
,
paymentChannelId
:
this
.
paymentChannelId
paymentChannelId
:
this
.
paymentChannelId
,
}
if
(
this
.
isYqType
)
{
params
.
merchantId
=
this
.
merchantId
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment