Explorar o código

'赠送书币商户书币调整'

zhuchengjie %!s(int64=3) %!d(string=hai) anos
pai
achega
61d0a0345d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Controllers/CompanyAuth/AppController.php

+ 1 - 1
src/Controllers/CompanyAuth/AppController.php

@@ -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;