Merge branch 'hotfix/change_getcpratio' of wmtx/platform into master

优化获取cp比例
master
廖金灵 4 years ago committed by Gogs
commit 5a5687b9da

@ -303,7 +303,7 @@ class CompanyStatementSetController extends Controller {
$game['pay_amount'] =$va['pay_money']; $game['pay_amount'] =$va['pay_money'];
$game['game_name'] =$ke; $game['game_name'] =$ke;
//获取游戏id及比例 //获取游戏id及比例
$game_id = $GameDb->where("game_name='{$ke}' OR original_package_name='{$ke}'")->field("id,relation_game_id")->find(); $game_id = $GameDb->where("relation_game_name='{$ke}' OR original_package_name='{$ke}'")->field("id,relation_game_id")->find();
if(empty($game_id)){ if(empty($game_id)){
$game['relation_game_id']=0; $game['relation_game_id']=0;
// $game['sum_money']=0; // $game['sum_money']=0;

Loading…
Cancel
Save