Commit 5c4c218f by 冷斌

fix bug

parent 19f28cc7
...@@ -1675,7 +1675,7 @@ class Api_Live extends PhalApi_Api { ...@@ -1675,7 +1675,7 @@ class Api_Live extends PhalApi_Api {
unset($result['welfare']['gifttoken']); unset($result['welfare']['gifttoken']);
unset($result['gift']['gifttoken']); unset($result['gift']['gifttoken']);
DI()->redis -> set($rs['info'][0]['gifttoken']['welfare'],json_encode($result['welfare'])); // DI()->redis -> set($rs['info'][0]['gifttoken']['welfare'],json_encode($result['welfare']));
DI()->redis -> set($rs['info'][0]['gifttoken']['gift'],json_encode($result['gift'])); DI()->redis -> set($rs['info'][0]['gifttoken']['gift'],json_encode($result['gift']));
return $rs; return $rs;
......
...@@ -662,8 +662,10 @@ class Model_Live extends PhalApi_Model_NotORM { ...@@ -662,8 +662,10 @@ class Model_Live extends PhalApi_Model_NotORM {
$result2=array( $result2=array(
"uid"=>$uid, "uid"=>$uid,
"giftid"=>$randomGift['id'], "giftid"=>$randomGift['id'],
"type"=>$randomGift['type'], // "type"=>$randomGift['type'],
"mark"=>$randomGift['mark'], // "mark"=>$randomGift['mark'],
'type' => 1,
'mark' => 4,
"giftcount"=>1, "giftcount"=>1,
"totalcoin"=>$randomGift['needcoin'], "totalcoin"=>$randomGift['needcoin'],
"giftname"=>$randomGift['giftname'], "giftname"=>$randomGift['giftname'],
......
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