|
|
|
@ -1599,8 +1599,8 @@ class MarketPercentageController extends ThinkController
|
|
|
|
|
|
|
|
|
|
if ($data['begin_time'] < $last_month && $data['end_time'] <= $last_month) {
|
|
|
|
|
$this->ajaxReturn(['msg'=>"已经结算过的时间不能修改","status"=>0]);
|
|
|
|
|
} elseif ($data['begin_time'] < $last_month && $data['end_time'] > $last_month) {
|
|
|
|
|
unset($data['begin_time']);
|
|
|
|
|
} elseif ($data['begin_time'] <= $last_month && $data['end_time'] > $last_month) {
|
|
|
|
|
$data['begin_time'] = strtotime(date('Y-m-1',strtotime("-1 month")));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$belong_game = M("company_belong_game","tab_")
|
|
|
|
@ -1687,7 +1687,7 @@ class MarketPercentageController extends ThinkController
|
|
|
|
|
->where(['id'=>$id])
|
|
|
|
|
->find();
|
|
|
|
|
|
|
|
|
|
if (date("m",$data['begin_time']) < date("m",time())) {
|
|
|
|
|
if (date("m",$data['begin_time']) < date("m",strtotime('-1 month'))) {
|
|
|
|
|
$this->ajaxReturn(['msg'=>"过去已结算过的比例不能删除","status"=>0]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|