Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
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
亲子游项目
backend
Commits
51a42f63
Commit
51a42f63
authored
Dec 14, 2018
by
LiuJunYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户增加新字段,会员价格改为测试价格
parent
83c72bc0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
application/admin/view/user/index.html
+6
-0
application/api/controller/Base.php
+4
-4
application/config.php
+1
-1
No files found.
application/admin/view/user/index.html
View file @
51a42f63
...
@@ -48,10 +48,13 @@
...
@@ -48,10 +48,13 @@
<tr>
<tr>
<th>
ID
</th>
<th>
ID
</th>
<th>
昵称
</th>
<th>
昵称
</th>
<th>
姓名
</th>
<th>
性别
</th>
<th>
性别
</th>
<th>
联系方式
</th>
<th>
联系方式
</th>
<th>
所在地
</th>
<th>
所在地
</th>
<th>
会员
</th>
<th>
会员
</th>
<th>
微信号
</th>
<th>
地址
</th>
<th>
会员到期时间
</th>
<th>
会员到期时间
</th>
<th>
IP
</th>
<th>
IP
</th>
<th>
注册时间
</th>
<th>
注册时间
</th>
...
@@ -64,6 +67,7 @@
...
@@ -64,6 +67,7 @@
<td>
<td>
<img
src=
"{$vo.avatar}"
onerror=
"this.src='/static/img/default_avatar.png'"
alt=
""
style=
"width:40px;margin-right: 5px"
>
{$vo.nickname}
<img
src=
"{$vo.avatar}"
onerror=
"this.src='/static/img/default_avatar.png'"
alt=
""
style=
"width:40px;margin-right: 5px"
>
{$vo.nickname}
</td>
</td>
<td>
{$vo.name}
</td>
<td>
<td>
<!--{$vo.gender}-->
<!--{$vo.gender}-->
{if condition="$vo.gender == 1"}
{if condition="$vo.gender == 1"}
...
@@ -83,6 +87,8 @@
...
@@ -83,6 +87,8 @@
非会员
非会员
{/if}
{/if}
</td>
</td>
<td>
{$vo.wx_number}
</td>
<td>
{$vo.address}
</td>
<td>
<td>
{if condition="$vo.is_vip == 1"}
{if condition="$vo.is_vip == 1"}
{$vo.vip_endtime}
{$vo.vip_endtime}
...
...
application/api/controller/Base.php
View file @
51a42f63
...
@@ -28,10 +28,10 @@ class Base extends Controller
...
@@ -28,10 +28,10 @@ class Base extends Controller
// echo $this->getSignature($params); exit;
// echo $this->getSignature($params); exit;
// 验证签名
// 验证签名
//
if (!$this->checkSignature($params)) {
if
(
!
$this
->
checkSignature
(
$params
))
{
//
echo json_encode(["code" => 1, "msg" => "auth failed"]);
echo
json_encode
([
"code"
=>
1
,
"msg"
=>
"auth failed"
]);
//
die;
die
;
//
}
}
// 用户信息
// 用户信息
if
(
input
(
'post.token'
))
{
if
(
input
(
'post.token'
))
{
...
...
application/config.php
View file @
51a42f63
...
@@ -330,7 +330,7 @@ $config = [
...
@@ -330,7 +330,7 @@ $config = [
'wx_pay'
=>
[
'wx_pay'
=>
[
'notify_url'
=>
'https://'
.
Env
::
get
(
'setting.domain'
,
'meixz.utools.club'
)
.
'/api/Order/callback'
,
'notify_url'
=>
'https://'
.
Env
::
get
(
'setting.domain'
,
'meixz.utools.club'
)
.
'/api/Order/callback'
,
'vip_title'
=>
'美行者会员VIP'
,
'vip_title'
=>
'美行者会员VIP'
,
'vip_price'
=>
49.9
,
'vip_price'
=>
0.01
,
'app_id'
=>
'wx1b834552a7d49bb3'
,
'app_id'
=>
'wx1b834552a7d49bb3'
,
'merchant_id'
=>
'1515838821'
,
'merchant_id'
=>
'1515838821'
,
'sign_type'
=>
'MD5'
,
'sign_type'
=>
'MD5'
,
...
...
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