1、安装结束的时候弹出alert,内容undefined,我是手动创建 DatabaseSeeder.php 解决的。
2、上传图片的时候,比如设置中上传企业logo,首先是:
"message": "syntax error, unexpected token \"<<\"", "exception": "ParseError", "file": "/www/wwwroot/tuoluo.1wy.top/crmeb/services/upload/storage/Local.php", "line": 119,
原因是这里有git合并冲突标记 <<<<<<< HEAD 和 >>>>>>> v2.0
之后是400多行报错,也是冲突标记问题。
3、之后又报错:
{ "message": "call_user_func_array(): Argument #1 ($callback) must be a valid callback, class App\\Http\\Dao\\Attach\\SystemAttachDao does not have a method \"setOption\"", "exception": "TypeError", "file": "/www/wwwroot/tuoluo.1wy.top/app/Http/Service/BaseService.php", "line": 62,
我在 /app/Http/Controller/AdminApi/Attach/AttachController.php 自己添加了一个 :
public function setOption(array $options)
{
// 实现配置存储逻辑,例如:
$this->options = $options;
return $this;
}
结果紧接着上传时候又报错:
"message": "Call to undefined method App\\Http\\Dao\\Attach\\SystemAttachDao::upload()",
"exception": "Error",
"file": "/www/wwwroot/tuoluo.1wy.top/app/Http/Controller/AdminApi/Attach/AttachController.php",
"line": 124,
没有upload方法
不知道是不是我哪里弄错了,反正感觉这种bug是不应该出现的,挺无语的,我是从gitee上用 git clone https://gitee.com/ZhongBangKeJi/tuoluojiang.git 命令克隆的