Commit b759161f by 冷斌

update

parent ffa99c6f
......@@ -1007,6 +1007,11 @@ class Model_Live extends PhalApi_Model_NotORM {
->where('id = ?', $uid)
->fetchOne();
$isexist=DI()->notorm->guard_users
->select('*')
->where('uid = ? and liveuid=?', $uid,$liveuid)
->fetchOne();
$level=getLevel($userinfo2['consumption']);
//guard_type
$result=array(
......@@ -1034,7 +1039,7 @@ class Model_Live extends PhalApi_Model_NotORM {
"isup"=>$isup,
"uplevel"=>$uplevel,
"upcoin"=>$upcoin,
'guard_type' => $isexist ? 1 : 0,
"iswin"=>$iswin,
"wincoin"=>$wincoin,
'isOpen' => 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment