Browse Source

lib/gateway.php GLOBAL_GATEWAY_ADDRESS maybe false

walkor 10 năm trước cách đây
mục cha
commit
cef6b3613c
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      GatewayWorker/Lib/Gateway.php

+ 4 - 0
GatewayWorker/Lib/Gateway.php

@@ -51,6 +51,10 @@ class Gateway
        else
        {
            $all_addresses = Store::instance('gateway')->get('GLOBAL_GATEWAY_ADDRESS');
+           if(!$all_addresses)
+           {
+               throw new \Exception('GLOBAL_GATEWAY_ADDRESS is ' . var_export($all_addresses, true));
+           }
            foreach($all_addresses as $address)
            {
                self::sendToGateway($address, $gateway_data);