💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
1. 打开conf配置文件 2. 设置项目的绝对路径 ( 注意尾部以/结束 ) ~~~ $ROOT = '/data/ProName/sbh/'; ~~~ 3.设置项目唯一标识 ~~~ define('PROKEY', 'sbhv81_ProName_v8'); ~~~ 4.配置redis信息 ~~~ $obj = []; $obj['pass'] = ''; //>密码 $obj['host'] = '127.0.0.1'; //>主机 $obj['port'] = 6379; //>端口 $obj['timeout'] = 10; //>超时秒数 define('REDIS', $obj); ~~~ 5.配置API ~~~ $obj = []; $obj['sign_key'] = ''; //>sign校对密钥 $obj['aes_key'] = ''; //>Api参数解析密钥(api的sign使用) $obj['backstage_key'] = ''; //>后台密钥(会影响后台用户密码) $obj['rsa_pub'] = ''; //>Api安全参非对称公钥 $obj['rsa_pri'] = ''; //>Api安全参非对称私钥 define('API', $obj); ~~~ 6.数据库配置 ~~~ $obj = []; $obj['suff'] = 'sbh_'; //>表前缀 $obj['host'] = ''; //>链接主机 $obj['table'] = ''; //>连接表 $obj['user'] = 'root'; //>账号 $obj['pass'] = ''; //>密码 define('DB', $obj); ~~~ 7.默认框架用户配置 ~~~ $obj = []; $obj['account'] = ''; $obj['password'] = ''; define('LOGIN', $obj); ~~~ 8.配置socket ~~~ $obj = []; $obj['url'] = ''; //>连接地址 define('SOCKET', $obj); ~~~