切换导航条
此项目
正在载入...
登录
郭盛
/
scrap
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
郭盛
5 years ago
提交
479e93d98767a0b045dc301d2eca358f3011873c
1 个父辈
331732d9
1 个管道 的构建
通过
耗费 8 秒
修改
变更
6
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
6 个修改的文件
包含
30 行增加
和
8 行删除
.idea/workspace.xml
api/config.php
api/index/controller/OrderController.php
api/index/controller/PayController.php
api/index/controller/UserController.php
app/config.php
.idea/workspace.xml
查看文件 @
479e93d
此 diff 太大无法显示。
api/config.php
查看文件 @
479e93d
...
...
@@ -257,7 +257,9 @@ return [
'cmf_admin_default_theme'
=>
'simpleboot3'
,
//小程序配置
'app_id'
=>
'wxf35ab92c5bd897b2'
,
'app_secret'
=>
'18ae3d2d5d18a646a792f4468a3e0e9f'
,
'app_id'
=>
'wxd7010deb3b696146'
,
'app_secret'
=>
'282f4cc8536523076c9d16af6331ffb6'
,
'wx_mch_id'
=>
'1563087351'
,
'wx_pay_key'
=>
'P1GSxsjA4Ts3g6V95FVE49bNQLClGckS'
,
];
...
...
api/index/controller/OrderController.php
查看文件 @
479e93d
...
...
@@ -106,4 +106,5 @@ class OrderController extends RestBaseController
->
find
();
return
$openid
;
}
}
\ No newline at end of file
...
...
api/index/controller/PayController.php
查看文件 @
479e93d
...
...
@@ -20,11 +20,11 @@ class PayController extends HomeBaseController
{
parent
::
_initialize
();
$this
->
options
=
[
'app_id'
=>
'wxc6ef42cbfc3497cf'
,
'secret'
=>
'752789aeeb5b72a97e733c79d060e1d4'
,
'app_id'
=>
'wxd7010deb3b696146'
,
'secret'
=>
'282f4cc8536523076c9d16af6331ffb6'
,
'payment'
=>
[
'merchant_id'
=>
'1549007421'
,
'key'
=>
'Y9ajUyikFR9QwVuusDwhZXwGy8dqy8gE'
,
'merchant_id'
=>
'1563087351'
,
'key'
=>
'P1GSxsjA4Ts3g6V95FVE49bNQLClGckS'
,
'cert_path'
=>
'../wechat/cert/apiclient_cert.pem'
,
// XXX: 绝对路径!!!!
'key_path'
=>
'../wechat/cert/apiclient_key.pem'
,
// XXX: 绝对路径!!!!
]
...
...
api/index/controller/UserController.php
查看文件 @
479e93d
...
...
@@ -191,4 +191,23 @@ class UserController extends RestBaseController
->
select
();
$this
->
success
(
'SUCCESS'
,
$data
);
}
/**
* @title 提现
* @author Guosheng
* @url /index/order/pay
* @method GET
*
* @header name:XX-Token require:1 default: desc:token
*
* @param name:order_id type:int require:1 other: desc:订单id
*/
public
function
deposit
()
{
$id
=
$this
->
getUserId
();
}
}
\ No newline at end of file
...
...
app/config.php
查看文件 @
479e93d
...
...
@@ -234,7 +234,7 @@ $configs = [
'cmf_admin_default_theme'
=>
'admin_simpleboot3'
,
//公众号配置
'app_id'
=>
'wxf35ab92c5bd897b2'
,
'app_secret'
=>
'18ae3d2d5d18a646a792f4468a3e0e9f'
,
'app_id'
=>
'wxd7010deb3b696146'
,
'app_secret'
=>
'282f4cc8536523076c9d16af6331ffb6'
,
];
return
array_merge
(
$configs
,
$runtimeConfig
,
$wechatConfig
);
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论