Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
quxiu
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
0
Merge Requests
0
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
冷斌
quxiu
Commits
092b1a64
Commit
092b1a64
authored
May 09, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
270e7a4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
application/Appapi/Controller/RechangeController.class.php
+22
-0
No files found.
application/Appapi/Controller/RechangeController.class.php
View file @
092b1a64
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
namespace
Appapi\Controller
;
namespace
Appapi\Controller
;
use
Common\Controller\HomebaseController
;
use
Common\Controller\HomebaseController
;
use
Yansongda\Pay\Pay
;
class
RechangeController
extends
HomebaseController
class
RechangeController
extends
HomebaseController
{
{
...
@@ -17,6 +18,27 @@ class RechangeController extends HomebaseController
...
@@ -17,6 +18,27 @@ class RechangeController extends HomebaseController
{
{
$this
->
display
();
$this
->
display
();
}
}
protected
function
getWxConfig
()
{
return
[
'appid'
=>
'wx98dd4477b89cb388'
,
// app 开放平台的APPID
'app_id'
=>
'wx37327dbb9d7b33f3'
,
// 公众号 APPID
'miniapp_id'
=>
''
,
//小程序 APPID
'appSecret'
=>
'7f8291af4e0795ee375f66487a721627'
,
// 公众号 秘钥
'mch_id'
=>
'1587472431'
,
// 商户号 id
'key'
=>
'hkLfAAmPx6TxsinuyciefzFivk6yE4r4'
,
// 商户 key
'notify_url'
=>
'/pay/wx'
,
// 'cert_client' => __DIR__ . '/apiclient_cert.pem', // optional, 退款,红包等情况时需要用到
// 'cert_key' => __DIR__ . '/apiclient_key.pem',// optional, 退款,红包等情况时需要用到
];
}
public
function
wx
()
{
$config
=
$this
->
getWxConfig
();
var_dump
(
Pay
::
wechat
(
$config
));
}
}
}
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