cp分成比例方法添加

master
zyx 5 years ago
parent cbe40d4b0f
commit 4be5b1ba2c

@ -2040,5 +2040,18 @@ function getPromoteCompanyList() {
}
function getGameCpRadio($game_id,$amount,$type) {
if (!$type) {
$data = M('cp_game_ratio','tab_')->where(['game_id'=>$game_id])->find();
} else {
$data = M('cp_game_ratio','tab_')->where(['game_id'=>$game_id,'begin_total_amount'=>['elt',$amount]])->order('begin_total_amount desc')->find();
}
return $data['ratio'];
}
?>

Loading…
Cancel
Save