优化平台币回收内存

master
chenzhi 5 years ago
parent b7a52bfed7
commit 0d4ca0840b

@ -61,6 +61,7 @@ class PromoteCoinController extends ThinkController
public function deduct_lists($p = 0) public function deduct_lists($p = 0)
{ {
ini_set('memory_limit', '512M');
// var_dump(session('user_auth')['uid']);die(); // var_dump(session('user_auth')['uid']);die();
if (isset($_GET['type']) && $_GET['type'] == 2) { if (isset($_GET['type']) && $_GET['type'] == 2) {
$extend['type'] = 2; $extend['type'] = 2;
@ -76,7 +77,6 @@ class PromoteCoinController extends ThinkController
} }
$extend['op_id'] = session('user_auth')['uid']; $extend['op_id'] = session('user_auth')['uid'];
// $promoteRoot = getPowerPromoteIds(); // $promoteRoot = getPowerPromoteIds();
// if ($promoteRoot) { // if ($promoteRoot) {
// $map['promote_id'] =array('in',$promoteRoot); // $map['promote_id'] =array('in',$promoteRoot);
@ -99,7 +99,6 @@ class PromoteCoinController extends ThinkController
$sum['yst_day'] = D(self::model_name)->where($map)->sum('num'); $sum['yst_day'] = D(self::model_name)->where($map)->sum('num');
$model_name = empty($model_name) ? self::model_name : $model_name; $model_name = empty($model_name) ? self::model_name : $model_name;
$sum['all_num'] = D($model_name)->where($extend)->sum('num'); $sum['all_num'] = D($model_name)->where($extend)->sum('num');
$this->assign('sum', $sum); $this->assign('sum', $sum);
$this->m_title = '平台币收回'; $this->m_title = '平台币收回';
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'PromoteCoin/deduct_lists', 'status' => 1])->find()); $this->assign('commonset', M('Kuaijieicon')->where(['url' => 'PromoteCoin/deduct_lists', 'status' => 1])->find());

Loading…
Cancel
Save