diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php index c76087014..309eeed77 100644 --- a/Application/Admin/Common/function.php +++ b/Application/Admin/Common/function.php @@ -585,6 +585,19 @@ function getAllGame() $list = M("game", 'tab_')->field('relation_game_name as game_name')->group('relation_game_name')->select(); return $list; } +/** + * 获取合作公司 + * @author chenzhi + */ +function getPromoteCompany() +{ + $list = M("PromoteCompany", 'tab_') + ->field('id,company_name') + ->where("status = 1") + ->select(); + array_unshift($list,array("id"=>0,"company_name"=>"万盟天下科技"));//默认0 + return $list; +} /** * 中间加密 替换字符串的子串 diff --git a/Application/Admin/Controller/FinancePromoteController.class.php b/Application/Admin/Controller/FinancePromoteController.class.php new file mode 100644 index 000000000..2b254b6a2 --- /dev/null +++ b/Application/Admin/Controller/FinancePromoteController.class.php @@ -0,0 +1,32 @@ +"; + } + public function index() + { + + //获取各会长的现金充值 + $map = ["spend.pay_status"=>1]; + $map['pay_way'] = array("GT",0); + + $field = "spend.promote_id,spend.promote_account,sum(pay_amount) pay_amount"; + $spendRes = M() + ->table("tab_spend spend") + ->field($field) + ->where($map) + ->join("tab_promote promote ON spend.promote_id = promote.id","left") + ->group('spend.promote_id') + ->select(); + dump($spendRes);die(); + + $this->display(); + # code... + } + + +} \ No newline at end of file diff --git a/Application/Admin/View/FinancePromote/index.html b/Application/Admin/View/FinancePromote/index.html new file mode 100644 index 000000000..4d61eeaf9 --- /dev/null +++ b/Application/Admin/View/FinancePromote/index.html @@ -0,0 +1,387 @@ + + + + + + + + + + + + +
+ +
+
+ +
+
+ +
+
+ +
+
+ +  -  +
+ + +
+
+
+ +
+
+ +
+ + +
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
推广公司会长渠道游戏现金金额平台币直充支出内充支出平台币内充渠道游戏内充值合计操作
aOh! 暂时还没有内容!
{$data.id}{:get_registertype($data['register_type'])}{$data.account}{$data.account} + + 官方渠道 + + ---{$data.promote_account} + + {$data.balance}{$data.recharge_total}{$data.gold_coin|default='0.00'}{$data.alipay|default='--'} + + {$data.small_count|default=0} + -- + + {:get_vip_level($data['recharge_total'])} + + 手机号 + 邮箱 + 账号 + + {$data.register_time|date='Y-m-d H:i:s',###}{$data.register_ip} + + 空 + + + + {$data.device_number|encryptStr}已{:get_info_status($data['lock_status'],4)}{:get_info_status($data['lock_status'],4)}正常已拉黑 + 查看 + 启用 + {:L('Lock')} +
汇总: + 当前用户累计充值:{$now_count}  用户数:{$user_count} +
+
+
+
+ 导出 + {$_page|default=''} +
+ + + + + +
+ + + +if(C('COLOR_STYLE')=='blue_color') echo ''; + + + + + + + +