优化原包名获取

master
chenzhi 3 years ago
parent 45885ad82a
commit 5ce952ef1e

@ -307,7 +307,7 @@ class CompanyStatementSetController extends Controller {
$game['pay_amount'] =$va['pay_money'];
$game['game_name'] =$ke;
//获取游戏id及比例
$game_id = $GameDb->where("relation_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}') and partner_id = '{$add_data['company_id']}'")->field("id,relation_game_id")->find();
if (empty($game_id) && isset($va['unique_code']) && !empty($va['unique_code'])) {
$unique_code = $va['unique_code'];
$game_id = $GameDb->where("unique_code='{$unique_code }'")->field("id,relation_game_id")->find();

Loading…
Cancel
Save