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