公会分成管理--更新

master
chenxiaojun 5 years ago
commit 6d215bda63

@ -380,9 +380,9 @@ class PromoteGameRatioController extends ThinkController
$model = new PromoteGameRatioModel(); $model = new PromoteGameRatioModel();
foreach ($ids as $id) { foreach ($ids as $id) {
$model->addLog($id); $model->addLog($id);
if ($status == 1) {
$promoteGameRatio = D(self::MODEL_NAME)->find($id); $promoteGameRatio = D(self::MODEL_NAME)->find($id);
if (!empty($promoteGameRatio)) { if (!empty($promoteGameRatio)) {
if ($status == 1) {
if ($promoteGameRatio['begin_time'] <= strtotime(date('Y-m-d', time()))) { if ($promoteGameRatio['begin_time'] <= strtotime(date('Y-m-d', time()))) {
$promoteId = $promoteGameRatio['promote_id']; $promoteId = $promoteGameRatio['promote_id'];
$promoteMap['chain'] = ['like', "/{$promoteId}/%"]; $promoteMap['chain'] = ['like', "/{$promoteId}/%"];

Loading…
Cancel
Save