|
@@ -43,7 +43,7 @@ class StoreGp extends BaseModel
|
|
|
User::where('uid', $spuser['uid'])->inc('brokerage_price', $sp_brokeragePrice)->update();
|
|
|
}
|
|
|
$p_no_cts = self::where('no', $gp_id)->value('team_cts');
|
|
|
- if ($p_no_cts % 3 == 0) {
|
|
|
+ if ($p_no_cts>0 && $p_no_cts % 3 == 0) {
|
|
|
$info = self::where('no', $gp_id)->find();
|
|
|
$sp_userInfo = User::find($info['uid']);
|
|
|
if($sp_userInfo['cycle_time']>time()) {
|