Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-packages
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
许振钊
ydl-packages
Commits
e5f13bf3
Commit
e5f13bf3
authored
Apr 04, 2023
by
Ron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: pre version
parent
e1749b07
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
package.json
package.json
+1
-0
Payment.ts
packages/toolkit/src/Payment/Payment.ts
+7
-1
No files found.
package.json
View file @
e5f13bf3
...
...
@@ -23,3 +23,4 @@
"
cz-customizable
"
:
"^6.9.1"
}
}
packages/toolkit/src/Payment/Payment.ts
View file @
e5f13bf3
...
...
@@ -297,7 +297,13 @@ export class Payment {
switch
(
payType
)
{
case
PayType
.
WECHAT_BALANCE
:
case
PayType
.
WECHAT
:
return
Utils
.
isWechat
()
?
PayChannel
.
WX_JSAPI
:
PayChannel
.
WX_MWEB
/**
* 当前本支付工具,主要被用于app、m站支付,不涉及到权限验证,一般都传WX_MWEB;
* 等后期要有权限验证的需求场景时,再放开
* return Utils.isWechat() ? PayChannel.WX_JSAPI : PayChannel.WX_MWEB
*
*/
return
PayChannel
.
WX_MWEB
case
PayType
.
ALIPAY
:
case
PayType
.
ALIPAY_BALANCE
:
case
PayType
.
HUABEI
:
...
...
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