Commit b759161f by 冷斌

update

parent ffa99c6f
...@@ -1007,6 +1007,11 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -1007,6 +1007,11 @@ class Model_Live extends PhalApi_Model_NotORM {
->where('id = ?', $uid) ->where('id = ?', $uid)
->fetchOne(); ->fetchOne();
$isexist=DI()->notorm->guard_users
->select('*')
->where('uid = ? and liveuid=?', $uid,$liveuid)
->fetchOne();
$level=getLevel($userinfo2['consumption']); $level=getLevel($userinfo2['consumption']);
//guard_type //guard_type
$result=array( $result=array(
...@@ -1034,7 +1039,7 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -1034,7 +1039,7 @@ class Model_Live extends PhalApi_Model_NotORM {
"isup"=>$isup, "isup"=>$isup,
"uplevel"=>$uplevel, "uplevel"=>$uplevel,
"upcoin"=>$upcoin, "upcoin"=>$upcoin,
'guard_type' => $isexist ? 1 : 0,
"iswin"=>$iswin, "iswin"=>$iswin,
"wincoin"=>$wincoin, "wincoin"=>$wincoin,
'isOpen' => 0 '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