diff --git a/Application/Admin/Controller/GameController.class.php b/Application/Admin/Controller/GameController.class.php
index 5a1cbf4dd..f22beeeea 100644
--- a/Application/Admin/Controller/GameController.class.php
+++ b/Application/Admin/Controller/GameController.class.php
@@ -439,6 +439,7 @@ class GameController extends ThinkController
M('Game', 'tab_')->where($map)->data(array('relation_game_id' => $anogame['id']))->save();
}
+
$pic = M('Picture')->find($gda['icon']);
$count = M('Game', 'tab_')->where(array('icon' => $gda['icon']))->count();//统计icon是否为多个游戏的图标
if ($pic != '' && $count == 1) { //只有一个游戏指向这个图标
@@ -761,4 +762,36 @@ class GameController extends ThinkController
}
+ public function companyGames($id)
+ {
+ $games = M('Game', 'tab_')
+ ->where(['partner_id'=>$id])
+ ->join("tab_cp_game_ratio on tab_game.id = tab_cp_game_ratio.game_id and begin_total_amount = 0 and is_del = 0", "left")
+ ->field("relation_game_name, game_id, tab_cp_game_ratio.ratio")
+ ->group('relation_game_id')->select();
+ echo M()->getLastSql();
+ var_dump($games);
+ }
+
+ public function devide_warn_list()
+ {
+
+ }
+
+ public function devide_warn_edit($id=0)
+ {
+ if (IS_POST) {
+
+ } else {
+ $partners = M('partner', 'tab_')->field("id, partner")->where(['status'=>1])->order('last_up_time desc')->select();
+ $this->assign('partners', $partners);
+ if ($id) {
+ $warnInfo = M('partner_divide_warn', 'tab_')->where(['id'=>$id])->find();
+ if (!$warnInfo) return $this->error('未找到该记录');
+ $this->assign('warnInfo', $warnInfo);
+ }
+ $this->display();
+ }
+ }
+
}
diff --git a/Application/Admin/View/Game/devide_warn_edit.html b/Application/Admin/View/Game/devide_warn_edit.html
new file mode 100644
index 000000000..3fc7b48fe
--- /dev/null
+++ b/Application/Admin/View/Game/devide_warn_edit.html
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file