slimkit / plus

💝The Plus (ThinkSNS+) is a powerful, easy-to-develop social system built with Laravel.
https://slimkit.github.io/plus/
Other
2.2k stars 473 forks source link

后台问题 #62

Closed xiayesuifeng closed 7 years ago

xiayesuifeng commented 7 years ago

Description:

安装教程种的输入 {APP_URL}/admin 进入后台 然而public下压根就没admin这货啊

medz commented 7 years ago

控制台截图看下

Seven Du shiweidu@outlook.com<mailto:shiweidu@outlook.com>

在 2017年6月30日,14:31,1377195627 notifications@github.com<mailto:notifications@github.com> 写道:

Description:

安装教程种的输入 {APP_URL}/admin 进入后台 然而public下压根就没admin这货啊

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/slimkit/thinksns-plus/issues/62, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFTplUGt15Lvth70cmjM_SYtnqA9Xa8Jks5sJJYlgaJpZM4OKMvv.

medz commented 7 years ago

image 有呀,您看。

xiayesuifeng commented 7 years ago

image 问题在于我现在打不开,时不时就会这样,然而我服务器上另外一个网站很正常 这是之前的截图 image

medz commented 7 years ago

额~你这个是 500 错误~

medz commented 7 years ago

应该是你环境问题,或者php函数禁用~

xiayesuifeng commented 7 years ago

什么函数

medz commented 7 years ago

你开启 xdebug 页面上会自动提示的。

xiayesuifeng commented 7 years ago

怎么开

medz commented 7 years ago

-。-!!!安装php拓展

xiayesuifeng commented 7 years ago

又正常了 image 为何首页只有这么几个字,

image 后台 而且xdebug好像远程不好弄吧

medz commented 7 years ago

php.ini 打开错误显示。

xiayesuifeng commented 7 years ago

本来就是开了的

medz commented 7 years ago

很明显,你没有开,你开了不会只返回 http 状态500,还会返回错误消息。

xiayesuifeng commented 7 years ago

image

medz commented 7 years ago

image 改为 E_ALL

xiayesuifeng commented 7 years ago

还是那样,没有

medz commented 7 years ago

那说明没有生效。

xiayesuifeng commented 7 years ago

我都直接重启了

medz commented 7 years ago

如果生效,不会只返回 http status code 的~真的。。。

xiayesuifeng commented 7 years ago

跟https有没有原因,http因为没备案访问不了

medz commented 7 years ago

没关系的哟。

xiayesuifeng commented 7 years ago

你们的安装教程要改改啊,搞了半天居然因为storage和bootstrap没权限

medz commented 7 years ago

🤣欢迎 PR 哟。

medz commented 7 years ago

毕竟 ThinkSNS Plus 不再是 所谓的开箱即用程序了。很多时候没法面面俱到。

xiayesuifeng commented 7 years ago

咋只有一个后台啊,前台部分呢

medz commented 7 years ago

拓展包

Seven Du shiweidu@outlook.com<mailto:shiweidu@outlook.com>

在 2017年6月30日,21:15,1377195627 notifications@github.com<mailto:notifications@github.com> 写道:

咋只有一个后台啊,主体部分呢

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/slimkit/thinksns-plus/issues/62#issuecomment-312264079, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFTplZ4qvrvV3ljvbJSIyRA9co4FFI1Oks5sJPTrgaJpZM4OKMvv.

xiayesuifeng commented 7 years ago

哪个扩展包

medz commented 7 years ago

例如 zhiyicx/plus-component-web 你可以搜 plus component

xiayesuifeng commented 7 years ago

这货我装了,还是没有啊

lain1936 commented 7 years ago

plus-component-web的说明不是很清楚 composer require zhiyicx/plus-component-web 然后在plus-component-web目录下执行yarn dev生成dist 然后在主目录执行php artisan package:handle h5 link或者是publish将组件的dist发布到public文件夹下 然后在地址栏后面加上/web查看效果

有些小问题 1 验证码没有配置阿里大于的直接在后台查看 2 你需要在后台勾选feed.post权限,才能发共享(和资讯?) 3 软连接public\storage到 storage\app\public才能看到上传的图片, windows下需要管理员cmd运行mklink /d 4 (windows下)web中vue的图片路径好像有问题utils/resource.js中,baseUrl = url + '/zhiyi/h5/'; resolveImage去掉重复的images, webpack去掉重复的../ (测试环境中,webpack不是isHot模式, link到public是在public下zhiyi/h5目录,)

medz commented 7 years ago

@lain1936

  1. 验证码默认只记录,因为你没有配置发送驱动。
  2. 安装应用后应该管理员手动后台勾选权限,处于权限控制考虑。
  3. Laravel 提供了 php artisan storage:link 来吧 storage/app/public 软链到 public/storages
  4. @boxshadow 你看下。