Commit 746812d3 by 冷斌

fix bug

parent b5cc7444
...@@ -1519,13 +1519,13 @@ class Api_Live extends PhalApi_Api { ...@@ -1519,13 +1519,13 @@ class Api_Live extends PhalApi_Api {
$giftlist=$domain->getGiftList(); $giftlist=$domain->getGiftList();
setcaches($key,$giftlist); setcaches($key,$giftlist);
} }
$data = []; // $data = [];
foreach ($giftlist as $key => $item) { // foreach ($giftlist as $key => $item) {
if ($item['type'] == $this->type) { // if ($item['type'] == $this->type) {
$data[] = $item; // $data[] = $item;
} // }
} // }
$giftlist = $data; // $giftlist = $data;
$domain2 = new Domain_User(); $domain2 = new Domain_User();
$coin=$domain2->getBalance($uid); $coin=$domain2->getBalance($uid);
......
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