报错 invalid [default store dir]: /tmp/

简介: php sdk解压以后文件如下   推荐处理方案   1.如果使用支付宝sdk,首先lotusphp_runtime 文件也要一起使用  支付宝现在的php sdk中有lotus框架可以和aop文件   夹放在同一级   2.

php sdk解压以后文件如下

  

推荐处理方案   

1.如果使用支付宝sdk,首先lotusphp_runtime 文件也要一起使用  支付宝现在的php sdk中有lotus框架可以和aop文件   夹放在同一级   

2.保证AopSdk.php文件中的方法可以走到这个lotusphp_runtime对应的方法中,然后进行测试看看是否可以请求成功   

/**
 * 找到lotusphp入口文件,并初始化lotusphp
 * lotusphp是一个第三方php框架,其主页在:lotusphp.googlecode.com
 */
$lotusHome = dirname(__FILE__) . DIRECTORY_SEPARATOR . "lotusphp_runtime" . DIRECTORY_SEPARATOR;
include($lotusHome . "Lotus.php");
$lotus = new Lotus;
$lotus->option["autoload_dir"] = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'aop';
$lotus->devMode = AOP_SDK_DEV_MODE;
$lotus->defaultStoreDir = AOP_SDK_WORK_DIR;
$lotus->init();

  3.如果还是报错,打开AopSdk.php  把下面:"/tmp/"文件夹 ,文件夹名称自定义, window环境改成绝对路径,    并且保证这个文件夹有读写权限   

/**
 * SDK工作目录
 * 存放日志,AOP缓存数据
 */
if (!defined("AOP_SDK_WORK_DIR"))
{   
    //  "/tmp/"文件夹名称自定义, 改成绝对路径,并且保证这个文件夹有读写权限
    define("AOP_SDK_WORK_DIR", "/tmp/");
}

   4.修改完成再进行测试。

目录
相关文章
Warning: To load an ES module, set “type“: “module“ in the package.json or use the .mjs extension.
Warning: To load an ES module, set “type“: “module“ in the package.json or use the .mjs extension.
|
9月前
|
前端开发
【前端异常】Module build failed: Error: ENOENT: no such file or directory, scandir ‘G:\OPWeb\public\node_m
【前端异常】Module build failed: Error: ENOENT: no such file or directory, scandir ‘G:\OPWeb\public\node_m
120 0
|
2月前
|
关系型数据库 MySQL 数据库
Mysql-错误处理: Found option without preceding group in config file
Mysql-错误处理: Found option without preceding group in config file
391 0
|
2月前
|
JavaScript API
Property ‘proxy‘ does not exist on type ‘ComponentInternalInstance | null‘.ts
Property ‘proxy‘ does not exist on type ‘ComponentInternalInstance | null‘.ts
|
10月前
|
JavaScript
Error TS6138 - Property xxxx is declared but its value is never read
Error TS6138 - Property xxxx is declared but its value is never read
|
10月前
cancal报错 config dir not found
cancal报错 config dir not found
error: Two output files share the same path but have different contents: node_modules\.vite\..xxx.js
error: Two output files share the same path but have different contents: node_modules\.vite\..xxx.js
625 0
error: Two output files share the same path but have different contents: node_modules\.vite\..xxx.js
|
PyTorch 算法框架/工具
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
179 0
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
解决 lupdate warning: no TS files specified.
解决 lupdate warning: no TS files specified.