Commit 439e91a2 by 冷斌

fix bug

parent 47205eab
......@@ -1114,12 +1114,12 @@ class Api_Live extends PhalApi_Api {
$where =" type='expend' and action in ('sendgift','sendbarrage') and addtime BETWEEN {$pk_time_start} AND {$pk_time_end}";
// $pk_gift_liveuid=DI()->redis -> hGet('LivePK_gift',$liveuid);
$pk_gift_liveuid = $result=DI()->notorm->users_coinrecord->where($where . " and touid = {$liveuid}")->sum('totalcoin2');
$pk_gift_liveuid = $result=DI()->notorm->users_coinrecord->where($where . " and touid = {$liveuid}")->sum('totalcoin');
if($pk_gift_liveuid){
$pkinfo['pk_gift_liveuid']=(string)$pk_gift_liveuid;
}
// $pk_gift_pkuid=DI()->redis -> hGet('LivePK_gift',$pkuid);
$pk_gift_pkuid = $result=DI()->notorm->users_coinrecord->where($where . " and touid = {$pkuid}")->sum('totalcoin2');
$pk_gift_pkuid = $result=DI()->notorm->users_coinrecord->where($where . " and touid = {$pkuid}")->sum('totalcoin');
// var_dump($liveuid, $pkuid, $showid, $pk_gift_liveuid, $pk_gift_pkuid);
// die;
if($pk_gift_pkuid){
......
......@@ -200,7 +200,7 @@ class AuthController extends HomebaseController {
'addtime'=>time(),
'uptime'=>time(),
'reason'=>'',
'state'=>'0',
'state'=>'2',
'signout'=>'0',
'divide_family'=>'-1',
);
......
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