💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# app.ini.php config/app.ini.php 如果加载paycenter里面的paypal,以下代码是事例。 ``` <pre class="calibre15">``` $loadFlag <span class="token">=</span> <span class="token6">true</span><span class="token1">;</span> <span class="token2">if</span><span class="token1">(</span><span class="token3">strpos</span><span class="token1">(</span>$_SERVER<span class="token1">[</span><span class="token4">'REQUEST_URI'</span><span class="token1">]</span><span class="token1">,</span><span class="token4">'paycenter/api/payment/paypal/notify_url.php?token='</span><span class="token1">)</span> <span class="token">!==</span><span class="token6">false</span><span class="token1">)</span><span class="token1">{</span> $loadFlag <span class="token">=</span> <span class="token6">false</span><span class="token1">;</span> <span class="token1">}</span> global $serverAppCfFromApi<span class="token1">;</span> $dir <span class="token">=</span> __DIR__<span class="token1">.</span><span class="token4">'/../../../server/'</span><span class="token1">;</span> <span class="token2">if</span><span class="token1">(</span>$loadFlag<span class="token1">)</span><span class="token1">{</span> <span class="token5">//sever的配置信息。当前的域名 </span> $currentHost <span class="token">=</span> <span class="token3">get_http_s</span><span class="token1">(</span><span class="token1">)</span><span class="token1">.</span><span class="token4">'://'</span><span class="token1">.</span>$_SERVER<span class="token1">[</span><span class="token4">'SERVER_NAME'</span><span class="token1">]</span><span class="token1">.</span><span class="token4">'/'</span><span class="token1">;</span> $serverAppCfFromApi <span class="token">=</span> include $dir<span class="token1">.</span><span class="token4">'api.php'</span><span class="token1">;</span> <span class="token3">spl_autoload_register</span><span class="token1">(</span><span class="token4">"__autoload"</span><span class="token1">)</span><span class="token1">;</span> <span class="token1">}</span><span class="token2">else</span><span class="token1">{</span> include $dir<span class="token1">.</span><span class="token4">'/config.ini.php'</span><span class="token1">;</span> $serverAppCfFromApi <span class="token">=</span> $_config<span class="token1">;</span> <span class="token1">}</span> ``` ```