Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
xiaozhan
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
冷斌
xiaozhan
Commits
391eafab
Commit
391eafab
authored
Feb 20, 2020
by
liuhailong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://132.232.91.252:9999/ice/xiaozhan
parents
086fbf11
239a1184
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
54 additions
and
36 deletions
+54
-36
admin/themes/simplebootx/Admin/Configprivate/index.html
+4
-2
api/Appapi/Api/Charge.php
+3
-3
api/Appapi/Api/Home.php
+4
-0
api/Appapi/Api/Live.php
+4
-4
api/Appapi/Api/Red.php
+1
-1
api/Appapi/Api/User.php
+2
-8
api/Appapi/Model/Live.php
+25
-4
api/Appapi/Model/User.php
+9
-11
application/Admin/Controller/CashController.class.php
+2
-2
themes/simplebootx/Appapi/Family/member_search.html
+0
-1
No files found.
admin/themes/simplebootx/Admin/Configprivate/index.html
View file @
391eafab
...
@@ -38,7 +38,7 @@ input{
...
@@ -38,7 +38,7 @@ input{
<li><a>
提现配置
</a></li>
<li><a>
提现配置
</a></li>
<li><a>
推送配置
</a></li>
<li><a>
推送配置
</a></li>
<li><a>
支付配置
</a></li>
<li><a>
支付配置
</a></li>
<li><a>
游戏配置
</a></li
>
<!-- <li><a>游戏配置</a></li>--
>
<li><a>
分销配置
</a></li>
<li><a>
分销配置
</a></li>
<li><a>
统计配置
</a></li>
<li><a>
统计配置
</a></li>
<li><a>
视频配置
</a></li>
<li><a>
视频配置
</a></li>
...
@@ -249,6 +249,7 @@ input{
...
@@ -249,6 +249,7 @@ input{
<input
type=
"text"
name=
"post[chatserver]"
value=
"{$config['chatserver']}"
>
格式:http://域名(:端口) 或者 http://IP(:端口)
<input
type=
"text"
name=
"post[chatserver]"
value=
"{$config['chatserver']}"
>
格式:http://域名(:端口) 或者 http://IP(:端口)
</div>
</div>
</div>
</div>
<!--
<div class="control-group">
<div class="control-group">
<label class="control-label">禁言时长</label>
<label class="control-label">禁言时长</label>
<div class="controls">
<div class="controls">
...
@@ -261,6 +262,7 @@ input{
...
@@ -261,6 +262,7 @@ input{
<input type="text" name="post[kick_time]" value="{$config['kick_time']}">秒 直播间踢出时长
<input type="text" name="post[kick_time]" value="{$config['kick_time']}">秒 直播间踢出时长
</div>
</div>
</div>
</div>
-->
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
模式选择
</label>
<label
class=
"control-label"
>
模式选择
</label>
<div
class=
"controls"
id=
"sdk"
>
<div
class=
"controls"
id=
"sdk"
>
...
@@ -500,7 +502,7 @@ input{
...
@@ -500,7 +502,7 @@ input{
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
提现比例
</label>
<label
class=
"control-label"
>
提现比例
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<input
type=
"text"
name=
"post[cash_rate]"
value=
"{$config['cash_rate']}"
>
提现一元人民币需要的
票数
<input
type=
"text"
name=
"post[cash_rate]"
value=
"{$config['cash_rate']}"
>
提现一元人民币需要的
积分
</div>
</div>
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"control-group"
>
...
...
api/Appapi/Api/Charge.php
View file @
391eafab
...
@@ -7,19 +7,19 @@ class Api_Charge extends PhalApi_Api {
...
@@ -7,19 +7,19 @@ class Api_Charge extends PhalApi_Api {
'getAliOrder'
=>
array
(
'getAliOrder'
=>
array
(
'uid'
=>
array
(
'name'
=>
'uid'
,
'type'
=>
'int'
,
'min'
=>
1
,
'require'
=>
true
,
'desc'
=>
'用户ID'
),
'uid'
=>
array
(
'name'
=>
'uid'
,
'type'
=>
'int'
,
'min'
=>
1
,
'require'
=>
true
,
'desc'
=>
'用户ID'
),
'changeid'
=>
array
(
'name'
=>
'changeid'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'充值规则ID'
),
'changeid'
=>
array
(
'name'
=>
'changeid'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'充值规则ID'
),
'coin'
=>
array
(
'name'
=>
'coin'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'
萌豆
'
),
'coin'
=>
array
(
'name'
=>
'coin'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'
钻石
'
),
'money'
=>
array
(
'name'
=>
'money'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'充值金额'
),
'money'
=>
array
(
'name'
=>
'money'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'充值金额'
),
),
),
'getWxOrder'
=>
array
(
'getWxOrder'
=>
array
(
'uid'
=>
array
(
'name'
=>
'uid'
,
'type'
=>
'int'
,
'min'
=>
1
,
'require'
=>
true
,
'desc'
=>
'用户ID'
),
'uid'
=>
array
(
'name'
=>
'uid'
,
'type'
=>
'int'
,
'min'
=>
1
,
'require'
=>
true
,
'desc'
=>
'用户ID'
),
'changeid'
=>
array
(
'name'
=>
'changeid'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'充值规则ID'
),
'changeid'
=>
array
(
'name'
=>
'changeid'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'充值规则ID'
),
'coin'
=>
array
(
'name'
=>
'coin'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'
萌豆
'
),
'coin'
=>
array
(
'name'
=>
'coin'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'
钻石
'
),
'money'
=>
array
(
'name'
=>
'money'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'充值金额'
),
'money'
=>
array
(
'name'
=>
'money'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'充值金额'
),
),
),
'getIosOrder'
=>
array
(
'getIosOrder'
=>
array
(
'uid'
=>
array
(
'name'
=>
'uid'
,
'type'
=>
'int'
,
'min'
=>
1
,
'require'
=>
true
,
'desc'
=>
'用户ID'
),
'uid'
=>
array
(
'name'
=>
'uid'
,
'type'
=>
'int'
,
'min'
=>
1
,
'require'
=>
true
,
'desc'
=>
'用户ID'
),
'changeid'
=>
array
(
'name'
=>
'changeid'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'充值规则ID'
),
'changeid'
=>
array
(
'name'
=>
'changeid'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'充值规则ID'
),
'coin'
=>
array
(
'name'
=>
'coin'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'
萌豆
'
),
'coin'
=>
array
(
'name'
=>
'coin'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'
钻石
'
),
'money'
=>
array
(
'name'
=>
'money'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'充值金额'
),
'money'
=>
array
(
'name'
=>
'money'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'充值金额'
),
),
),
);
);
...
...
api/Appapi/Api/Home.php
View file @
391eafab
...
@@ -153,6 +153,10 @@ class Api_Home extends PhalApi_Api {
...
@@ -153,6 +153,10 @@ class Api_Home extends PhalApi_Api {
$info
[
'guide'
]
=
$guide_info
;
$info
[
'guide'
]
=
$guide_info
;
// 福利袋
$welfare
=
DI
()
->
notorm
->
welfare_rate
->
select
(
'rate'
)
->
where
(
'id=1'
)
->
fetchOne
();
$info
[
'welfare_price'
]
=
$welfare
[
'rate'
];
$rs
[
'info'
][
0
]
=
$info
;
$rs
[
'info'
][
0
]
=
$info
;
return
$rs
;
return
$rs
;
...
...
api/Appapi/Api/Live.php
View file @
391eafab
...
@@ -222,15 +222,15 @@ class Api_Live extends PhalApi_Api {
...
@@ -222,15 +222,15 @@ class Api_Live extends PhalApi_Api {
protected
function
getbaiming
(
$uid
)
protected
function
getbaiming
(
$uid
)
{
{
$domain
=
new
Domain_Home
();
$domain
=
new
Domain_Home
();
$res
=
$domain
->
wealth
(
'day'
);
$res
=
$domain
->
star
(
'day'
);
$i
=
0
;
$i
=
99
;
foreach
(
$res
as
$key
=>
$r
){
foreach
(
$res
as
$key
=>
$r
){
if
(
$r
[
'uid'
]
==
$uid
)
{
if
(
$r
[
'uid'
]
==
$uid
)
{
$i
=
$key
+
1
;
$i
=
$key
;
break
;
break
;
}
}
}
}
return
$i
;
return
$i
+
1
;
}
}
/**
/**
...
...
api/Appapi/Api/Red.php
View file @
391eafab
...
@@ -10,7 +10,7 @@ class Api_Red extends PhalApi_Api {
...
@@ -10,7 +10,7 @@ class Api_Red extends PhalApi_Api {
'stream'
=>
array
(
'name'
=>
'stream'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'流名'
),
'stream'
=>
array
(
'name'
=>
'stream'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'流名'
),
'type'
=>
array
(
'name'
=>
'type'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'红包类型,0普通,1手气'
),
'type'
=>
array
(
'name'
=>
'type'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'红包类型,0普通,1手气'
),
'type_grant'
=>
array
(
'name'
=>
'type_grant'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'发放类型,0立即 1延迟'
),
'type_grant'
=>
array
(
'name'
=>
'type_grant'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'发放类型,0立即 1延迟'
),
'coin'
=>
array
(
'name'
=>
'coin'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'
萌豆
'
),
'coin'
=>
array
(
'name'
=>
'coin'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'
钻石
'
),
'nums'
=>
array
(
'name'
=>
'nums'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'数量'
),
'nums'
=>
array
(
'name'
=>
'nums'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'数量'
),
'des'
=>
array
(
'name'
=>
'des'
,
'type'
=>
'string'
,
'default'
=>
'恭喜发财,大吉大利'
,
'desc'
=>
'描述'
),
'des'
=>
array
(
'name'
=>
'des'
,
'type'
=>
'string'
,
'default'
=>
'恭喜发财,大吉大利'
,
'desc'
=>
'描述'
),
),
),
...
...
api/Appapi/Api/User.php
View file @
391eafab
...
@@ -940,15 +940,9 @@ class Api_User extends PhalApi_Api {
...
@@ -940,15 +940,9 @@ class Api_User extends PhalApi_Api {
return
$rs
;
return
$rs
;
}
}
if
(
!
$accountid
){
if
(
$cashvote
<=
0
){
$rs
[
'code'
]
=
1001
;
$rs
[
'msg'
]
=
'请选择提现账号'
;
return
$rs
;
}
if
(
!
$cashvote
){
$rs
[
'code'
]
=
1002
;
$rs
[
'code'
]
=
1002
;
$rs
[
'msg'
]
=
'请输入有效的提现
票数
'
;
$rs
[
'msg'
]
=
'请输入有效的提现
金额
'
;
return
$rs
;
return
$rs
;
}
}
...
...
api/Appapi/Model/Live.php
View file @
391eafab
...
@@ -308,7 +308,7 @@ class Model_Live extends PhalApi_Model_NotORM {
...
@@ -308,7 +308,7 @@ class Model_Live extends PhalApi_Model_NotORM {
if
(
$islive
[
'type'
]
==
1
){
if
(
$islive
[
'type'
]
==
1
){
$rs
[
'type_msg'
]
=
md5
(
$islive
[
'type_val'
]);
$rs
[
'type_msg'
]
=
md5
(
$islive
[
'type_val'
]);
}
else
if
(
$islive
[
'type'
]
==
2
){
}
else
if
(
$islive
[
'type'
]
==
2
){
$rs
[
'type_msg'
]
=
'本房间为收费房间,需支付'
.
$islive
[
'type_val'
]
.
'
萌豆
'
;
$rs
[
'type_msg'
]
=
'本房间为收费房间,需支付'
.
$islive
[
'type_val'
]
.
'
钻石
'
;
$rs
[
'type_val'
]
=
$islive
[
'type_val'
];
$rs
[
'type_val'
]
=
$islive
[
'type_val'
];
$isexist
=
DI
()
->
notorm
->
users_coinrecord
$isexist
=
DI
()
->
notorm
->
users_coinrecord
->
select
(
'id'
)
->
select
(
'id'
)
...
@@ -321,7 +321,7 @@ class Model_Live extends PhalApi_Model_NotORM {
...
@@ -321,7 +321,7 @@ class Model_Live extends PhalApi_Model_NotORM {
}
}
}
else
if
(
$islive
[
'type'
]
==
3
){
}
else
if
(
$islive
[
'type'
]
==
3
){
$rs
[
'type_val'
]
=
$islive
[
'type_val'
];
$rs
[
'type_val'
]
=
$islive
[
'type_val'
];
$rs
[
'type_msg'
]
=
'本房间为计时房间,每分钟需支付'
.
$islive
[
'type_val'
]
.
'
萌豆
'
;
$rs
[
'type_msg'
]
=
'本房间为计时房间,每分钟需支付'
.
$islive
[
'type_val'
]
.
'
钻石
'
;
}
}
return
$rs
;
return
$rs
;
...
@@ -524,8 +524,8 @@ class Model_Live extends PhalApi_Model_NotORM {
...
@@ -524,8 +524,8 @@ class Model_Live extends PhalApi_Model_NotORM {
}
}
$welfare
=
DI
()
->
notorm
->
welfare_rate
->
select
(
'rate'
)
->
where
(
'id=1'
)
->
fetchOne
();
$welfare
=
DI
()
->
notorm
->
welfare_rate
->
select
(
'rate'
)
->
where
(
'id=1'
)
->
fetchOne
();
$giftinfo
=
[
$giftinfo
=
[
'type'
=>
0
,
'type'
=>
1
,
'mark'
=>
0
,
'mark'
=>
4
,
'giftname'
=>
'福利袋'
,
'giftname'
=>
'福利袋'
,
'gifticon'
=>
'http://qiniu.huad.leacho.cn/20190723/5d367483cb9ac.png'
,
'gifticon'
=>
'http://qiniu.huad.leacho.cn/20190723/5d367483cb9ac.png'
,
'needcoin'
=>
$welfare
[
'rate'
],
'needcoin'
=>
$welfare
[
'rate'
],
...
@@ -864,6 +864,27 @@ class Model_Live extends PhalApi_Model_NotORM {
...
@@ -864,6 +864,27 @@ class Model_Live extends PhalApi_Model_NotORM {
"addtime"
=>
$addtime
"addtime"
=>
$addtime
);
);
DI
()
->
notorm
->
users_coinrecord
->
insert
(
$insert
);
DI
()
->
notorm
->
users_coinrecord
->
insert
(
$insert
);
$luckcoin2
=
(
int
)(
$luckcoin
*
0.05
*
100
);
$luckcoin3
=
$luckcoin2
/
100
;
if
(
$luckcoin3
>
0
)
{
DI
()
->
notorm
->
users
->
where
(
'id = ?'
,
$liveuid
)
->
update
(
array
(
'votes'
=>
new
NotORM_Literal
(
"votes +
{
$luckcoin3
}
"
),
'votestotal'
=>
new
NotORM_Literal
(
"votestotal +
{
$luckcoin3
}
"
)
));
$insert
=
array
(
"type"
=>
'income'
,
"action"
=>
'luckgift'
,
"uid"
=>
$liveuid
,
"touid"
=>
$liveuid
,
"giftid"
=>
$giftid
,
"giftcount"
=>
$lucktimes
,
"totalcoin"
=>
$luckcoin
,
"showid"
=>
$showid
,
"mark"
=>
$giftinfo
[
'mark'
],
"addtime"
=>
$addtime
);
DI
()
->
notorm
->
users_coinrecord
->
insert
(
$insert
);
}
break
;
break
;
}
}
}
}
...
...
api/Appapi/Model/User.php
View file @
391eafab
...
@@ -157,12 +157,10 @@ class Model_User extends PhalApi_Model_NotORM
...
@@ -157,12 +157,10 @@ class Model_User extends PhalApi_Model_NotORM
/* 提现 */
/* 提现 */
public
function
setCash
(
$data
)
public
function
setCash
(
$data
)
{
{
$nowtime
=
time
();
$nowtime
=
time
();
$uid
=
$data
[
'uid'
];
$uid
=
$data
[
'uid'
];
$accountid
=
$data
[
'accountid'
];
$accountid
=
$data
[
'accountid'
];
$
cashvote
=
$data
[
'cashvote'
];
$
money
=
$data
[
'cashvote'
];
$config
=
getConfigPri
();
$config
=
getConfigPri
();
$cash_start
=
$config
[
'cash_start'
];
$cash_start
=
$config
[
'cash_start'
];
...
@@ -195,7 +193,7 @@ class Model_User extends PhalApi_Model_NotORM
...
@@ -195,7 +193,7 @@ class Model_User extends PhalApi_Model_NotORM
}
}
/* 钱包信息 */
/* 钱包信息 */
$accountinfo
=
DI
()
->
notorm
->
cmf_users_info_auth
->
select
(
"*"
)
->
where
(
'uid=? and status=?'
,
$uid
,
1
)
->
andWhere
(
)
->
fetchOne
();
$accountinfo
=
DI
()
->
notorm
->
users_info_auth
->
where
(
"uid=
{
$uid
}
and status=1"
)
->
fetchOne
();
if
(
!
$accountinfo
)
{
if
(
!
$accountinfo
)
{
return
1007
;
return
1007
;
}
}
...
@@ -206,7 +204,7 @@ class Model_User extends PhalApi_Model_NotORM
...
@@ -206,7 +204,7 @@ class Model_User extends PhalApi_Model_NotORM
$cash_min
=
$config
[
'cash_min'
];
$cash_min
=
$config
[
'cash_min'
];
//提现钱数
//提现钱数
$money
=
floor
(
$cashvote
/
$cash_rate
);
//
$money = floor($cashvote / $cash_rate);
if
(
$money
<
$cash_min
)
{
if
(
$money
<
$cash_min
)
{
return
1004
;
return
1004
;
...
@@ -221,16 +219,16 @@ class Model_User extends PhalApi_Model_NotORM
...
@@ -221,16 +219,16 @@ class Model_User extends PhalApi_Model_NotORM
$name
=
$account
=
$account_bank
=
''
;
$name
=
$account
=
$account_bank
=
''
;
if
(
$accountid
==
1
)
{
if
(
$accountid
==
0
)
{
$account
=
$accountinfo
[
'account'
];
$account
=
$accountinfo
[
'account'
];
$name
=
$accountinfo
[
'username'
];
$name
=
$accountinfo
[
'username'
];
}
}
//
// if ($accountid == 2) {
// return 1007;
// }
if
(
$accountid
==
2
)
{
if
(
$accountid
==
1
)
{
return
1007
;
}
if
(
$accountid
==
3
)
{
$name
=
$accountinfo
[
'name'
];
$name
=
$accountinfo
[
'name'
];
$account
=
$accountinfo
[
'bank_card'
];
$account
=
$accountinfo
[
'bank_card'
];
$account_bank
=
$accountinfo
[
'bank_province'
]
.
$accountinfo
[
'bank_city'
];
$account_bank
=
$accountinfo
[
'bank_province'
]
.
$accountinfo
[
'bank_city'
];
...
...
application/Admin/Controller/CashController.class.php
View file @
391eafab
...
@@ -7,9 +7,9 @@ namespace Admin\Controller;
...
@@ -7,9 +7,9 @@ namespace Admin\Controller;
use
Common\Controller\AdminbaseController
;
use
Common\Controller\AdminbaseController
;
class
CashController
extends
AdminbaseController
{
class
CashController
extends
AdminbaseController
{
var
$type
=
array
(
var
$type
=
array
(
'
1
'
=>
'支付宝'
,
'
0
'
=>
'支付宝'
,
'2'
=>
'微信'
,
'2'
=>
'微信'
,
'
3
'
=>
'银行卡'
,
'
1
'
=>
'银行卡'
,
);
);
function
index
(){
function
index
(){
...
...
themes/simplebootx/Appapi/Family/member_search.html
View file @
391eafab
...
@@ -64,7 +64,6 @@
...
@@ -64,7 +64,6 @@
},
'json'
);
},
'json'
);
},
},
add
:
function
(
id
)
{
add
:
function
(
id
)
{
layer
.
msg
(
"申请错误!"
);
$
.
ajax
({
$
.
ajax
({
url
:
'/index.php?g=Appapi&m=Family&a=member_add'
,
url
:
'/index.php?g=Appapi&m=Family&a=member_add'
,
dataType
:
"json"
,
dataType
:
"json"
,
...
...
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