Merge branch 'hotfix/add_game_sync' of wmtx/platform into release

游戏添加自动同步推广公司bug
master
万盟天下 4 years ago committed by Gogs
commit e2570b012f

@ -238,7 +238,7 @@ class GameController extends ThinkController
$gameService->saveBaseGame($baseData); $gameService->saveBaseGame($baseData);
M('promote_company', 'tab_') M('promote_company', 'tab_')
->where('1=1') ->where(['company_belong' => ['not in', [1, 2]]])
->save(['game_ids' => ['exp', 'trim(BOTH "," FROM concat(game_ids, ",", ' . $res['relation_game_id'] . '))']]); ->save(['game_ids' => ['exp', 'trim(BOTH "," FROM concat(game_ids, ",", ' . $res['relation_game_id'] . '))']]);
$subSql = M('promote_company', 'tab_')->field('id')->where(['company_belong' => ['not in', [1, 2]]])->select(false); $subSql = M('promote_company', 'tab_')->field('id')->where(['company_belong' => ['not in', [1, 2]]])->select(false);

Loading…
Cancel
Save