|
@@ -466,7 +466,7 @@ class AppController extends Controller
|
|
|
}
|
|
|
|
|
|
//商户书币限制
|
|
|
- $sql = 'select app_id,today_user_numbers from company_auth_configs where id in(select company_id from channel_users where id in( select channel_user_id from distribution_channels where id='.$channel_id.'))';
|
|
|
+ $sql = 'select app_id,today_user_numbers from company_auth_configs where id in(select company_id from channel_users where id in( select channel_user_id from distribution_channels where id='. $channel_id .'))';
|
|
|
$res = DB::connection('mysql')->select($sql);
|
|
|
if($res && isset($res[0]) && !empty($res[0]->today_user_numbers)){
|
|
|
$limit_users = $res[0]->today_user_numbers;
|