久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

Discuz! 官方交流社區

標題: 通用云存儲使用教程 [打印本頁]

作者: 842939018    時間: 2024-1-12 00:53
標題: 通用云存儲使用教程
本帖最后由 842939018 于 2024-2-28 22:50 編輯

插件的參數,重點是region的配置。
七牛云無需region
騰訊云和阿里云需要。

騰訊云參數: (, 下載次數: 46)
作者: hinoishi    時間: 2024-1-12 09:43
先留個腳印
作者: 一定    時間: 2024-1-12 11:48
插件發布了,還不來寫教程
作者: jane520    時間: 2024-1-12 17:36
666可以的  
作者: 842939018    時間: 2024-1-13 01:02
一定 發表于 2024-1-12 11:48
插件發布了,還不來寫教程

同學喬遷新居,去捧場了。
周日還有一場...

估計周一周二優化一下插件,再寫教程吧
作者: com叔叔    時間: 2024-1-13 11:14
本帖最后由 com叔叔 于 2024-1-13 11:16 編輯

幫你測試了一下,按裝后在未做任何設置的情況下點擊附件列表出現這種情況,不知是否正常?

(, 下載次數: 80)

作者: 842939018    時間: 2024-1-13 12:19
本帖最后由 842939018 于 2024-1-13 12:26 編輯
com叔叔 發表于 2024-1-13 11:14
幫你測試了一下,按裝后在未做任何設置的情況下點擊附件列表出現這種情況,不知是否正常?

謝謝測試!
不正常,錯誤信息表示多了個')'字符

很奇怪,如果有這個錯誤的話,應該是所有人都有這個錯誤才對。

我再看看,謝謝!
————————————分割線————————————
安裝時,代碼不完整。
我把報錯的整個文件貼上來
  1. 文件地址:souce/plugin/common_cloud_storage/include/list.php
復制代碼
  1. <?php
  2. if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
  3.     exit('Access Denied');
  4. }

  5. $pluginlang = lang('plugin/common_cloud_storage');
  6. showtablerow('', array('class="xiongzhu3"', 'class="xiongzhu4"'),
  7.     array('<button  class="submit btn" style="border-radius: 3px"><a style="color: white" href="'.ADMINSCRIPT.'?'
  8.         . \common_cloud_storage\get_url() . '&attr_type=forum&tmod=list' . '">'. $pluginlang['forum'] . '</a></button>',
  9.         '<button  class="submit btn" style="border-radius: 3px"><a style="color: white" href="'.ADMINSCRIPT.'?'
  10.         . \common_cloud_storage\get_url() . '&attr_type=home_pic&tmod=list' . '">'. $pluginlang['home_pic'] . '</a></button>',
  11.         '<button  class="submit btn" style="border-radius: 3px"><a style="color: white" href="'.ADMINSCRIPT.'?'
  12.         . \common_cloud_storage\get_url() . '&attr_type=portal&tmod=list' . '">'. $pluginlang['portal'] . '</a></button>',
  13.     ),
  14. );
  15. $count=0;
  16. $limit = 10;//單頁數量
  17. $currenPage = $_GET['page']?$_GET['page']:1;//當前頁面
  18. $extra='$extra';
  19. $mpurl = ADMINSCRIPT."?action=plugins&operation=config&identifier=common_cloud_storage&pmod=common_cloud_storage_list&attr_type={$_GET['attr_type']}";

  20. //沒有選擇類型時
  21. if(!$_GET['attr_type']){
  22.     exit;
  23. }

  24. //展示論壇附件
  25. if($_GET['attr_type']=='forum'){
  26.     $count =  DB::result_first("SELECT COUNT(*) FROM " . DB::table("forum_attachment"));//總數
  27.     $dataList = array();
  28.     if($count){
  29.         $dataList = Db::fetch_all('select * from %t limit %d,%d' , array('forum_attachment',($currenPage-1)*$limit,$limit));
  30.         foreach ($dataList as $k=>$v){
  31.             $dataList[$k]['info'] =  Db::fetch_first('select * from %t where aid = %i' , array('forum_attachment_'.$v['tableid'],$v['aid']));
  32.             $dataList[$k]['info']['datetime'] = date('y-m-d H:i:s',$dataList[$k]['info']['dateline']);
  33.         }
  34.         unset($k,$v);
  35.     }
  36.     include template('common_cloud_storage:forum_attachment_list');
  37. }

  38. //相冊附件
  39. if($_GET['attr_type']=='home_pic'){
  40.     $count =  DB::result_first("SELECT COUNT(*) FROM " . DB::table("home_pic"));//總數
  41.     $dataList = array();
  42.     if($count){
  43.         $dataList = Db::fetch_all('select * from %t limit %d,%d' , array('home_pic',($currenPage-1)*$limit,$limit));
  44.     }
  45.     include template('common_cloud_storage:home_pic_list');
  46. }

  47. //論壇封面附件
  48. if($_GET['attr_type']=='portal') {
  49.     $count =  DB::result_first("SELECT COUNT(*) FROM " . DB::table("portal_attachment"));//總數
  50.     $dataList = array();
  51.     if($count){
  52.         $dataList = Db::fetch_all('select * from %t limit %d,%d' , array('portal_attachment',($currenPage-1)*$limit,$limit));
  53.     }
  54.     include template('common_cloud_storage:portal_attachment_list');
  55. }
  56. //論壇封面附件
  57. if($_GET['attr_type']=='forum_thread') {
  58.     echo '主題封面';
  59. }

  60. /*分頁*/
  61. if($count){
  62.     echo multi($count, $limit, $currenPage, $mpurl);
  63. }
復制代碼



作者: com叔叔    時間: 2024-1-13 15:26
842939018 發表于 2024-1-13 12:19
謝謝測試!
不正常,錯誤信息表示多了個')'字符


替換為你給的代碼錯誤如下
(, 下載次數: 83)

作者: 842939018    時間: 2024-1-15 00:09
com叔叔 發表于 2024-1-13 15:26
替換為你給的代碼錯誤如下

麻煩加我Q或微信,約個時間遠程。請提前安裝向日葵遠程協助軟件。

報錯信息是:‘語法錯誤,多了一個)’符號,不可能,絕對不可能。
Q:842939018
微:liuxiongzhu
作者: Thor    時間: 2024-7-23 12:12
bug 修復了嗎
作者: 842939018    時間: 2024-8-10 10:18
Thor 發表于 2024-7-23 12:12
bug 修復了嗎

你好!什么BUG? 直接聯系我QQ
作者: 842939018    時間: 2024-8-10 10:19
com叔叔 發表于 2024-1-13 15:26
替換為你給的代碼錯誤如下

你好! 不記得你這個問題處理了沒.
如果還沒處理,聯系我呀~然后備注一下已處理
作者: coolcss?橄欖樹    時間: 2024-8-10 19:18
插件是不可以免費使用的,88元才可以用。
作者: coolcss?橄欖樹    時間: 2024-8-10 19:20
Thor 發表于 2024-7-23 12:12
bug 修復了嗎

插件是不可以免費使用的,88元才可以,也不知道能不能用。套路大啊。買這個不錯https://addon.dismall.com/plugins/ror_attach_oss.90049.html




歡迎光臨 Discuz! 官方交流社區 (http://www.9999xn.com/) Powered by Discuz! W1.0