优化游戏分成比例不受档位限制

master
chenzhi 5 years ago
parent c76cf038cd
commit 4fde001d4e

@ -1059,9 +1059,9 @@ class GameController extends ThinkController
->where($where)
->order("ratio asc")
->find();
if($info){
die(json_encode(array("result"=>"0","desc"=>"CP分成比例应小于".$info['ratio']."%")));
}
// if($info){
// die(json_encode(array("result"=>"0","desc"=>"CP分成比例应小于".$info['ratio']."%")));
// }
foreach ($relation_game_list as $game){
$map['game_id'] = $game['id'];
@ -1103,9 +1103,9 @@ class GameController extends ThinkController
die(json_encode(array("result"=>"0","desc"=>"分成档位已存在")));
}
if($initial_info['game_ratio']>=$data['game_ratio']){
die(json_encode(array("result"=>"0","desc"=>"分成比例不得小于初始比例")));
}
// if($initial_info['game_ratio']>=$data['game_ratio']){
// die(json_encode(array("result"=>"0","desc"=>"分成比例不得小于初始比例")));
// }
$info = M('cp_game_ratio', 'tab_')->where("id=%d",$data['data_id'])->find();
foreach ($relation_game_list as $game) {

Loading…
Cancel
Save