dute
问题文档地址: https://docs.qq.com/doc/DRnpwd1p3TVhQd0Fn
1.接口使用说明 接口由接口地址、全局参数、接口参数、参数签名四部分组成,接口地址及接口参数请见相关接口说明。 1.1接口全局参数
参数 | 必要性 | 类型 | 名称 | 备注 |
siteid | 必传 | int | sit站点id | 站点id,以实际站点id为准,默认站点为10001 |
clientid | 必传 | int | 客户端编号id | 从媒体云后台手机客户端中获取 |
ip | 必传 | string | 客户端访问网络ip | 如:127.0.0.1 |
time | 必传 | int | 发起请求时间戳 | 例:1551258188 |
type | 必传 | string | 客户端类型 | 只能是ios或者android |
sign | 必传 | string | 参数签名 | 由算法根据参数生成,具体算法见1.2 |
modules | 必传 | string | 模块名及版本 | 如:needcaptcha:1,具体模块名及版本见相应接口 |
system_name | 选传 | string | 系统名称 | 如:iOS |
system_version | 选传 | string | 系统版本 | 如:12.1.4 |
app_version | 选传 | string | app版本 | 如:4.0.0 |
device_model | 选传 | string | 设备名 | 如:iPhone |
git@github.com:marsnut/zhgdocs.git git@gitee.com:lin1914/plus-shenzhenbaoye.git https://gitee.com/lin1914
git clone http://192..... git pull origin dev git add README git commit -m "add new file" git push origin master:dev 将本地master分支合并到远程dev分支 git branch 查看本地分支 git branch -a 查看本地和远程所有分支 git branch -r 查看远程所有分支 git status 查看工作区改动情况 git remote -v git clone -b dev http://192... 克隆指定分支 git checkout -- README 还原文件 #git status Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: Frontend/Site/Modules/System/Controllers/Sensitive.php modified: Frontend/Site/Public/assets/module/setting/index/js/wordcensor.js modified: Frontend/Site/Public/assets/module/setting/index/template/include/wordcensor.html modified: Global/Library/Helper/Sensitive/FilterDefault.php modified: Global/Library/Helper/Sensitive/FilterFactory.php modified: Global/Library/Service/Content/Content.php modified: Global/Tests/test.php modified: Global/Tests/vv.php modified: Global/ttt.php Untracked files: (use "git add <file>..." to include in what will be committed) Frontend/Site/Bootstrap.dat Frontend/Site/Public/assets/module/setting/index/template/include/.wordcensor.html.swp Global/Library/Helper/Sensitive/FilterBaiduAI.php
开发分支命名规范: 基准版本号-(fixbug|improve|feature)-分支描述 fixbug 代表bug修复 improve 代表性能升级或者功能升级 feature 代表新功能 基准版本号 就是上次版本发布后最后的稳定版本号,假设上次版本发布后最后的稳定版本号是 1.4.0.100,则你的开发分支命名类似这样: v1.4.0.100-feature-new_special git pull orgin dev 远程开发分支合并 git commit 将代码提交到本地仓库 git push 将本地分支推送到远端仓库 提交代码闪检查: git diff 查看每个文件的改动对比 git diff README 查看某个文件对比 确认没有问题后用git add将文件提交到暂存区 git status检查待提交文件列表中是否有不需要提交的文件 git reset将不需要的文件从提交列表中移除 git checkout -- Global/Tests/ttt.php 撤销修改,从版本库中恢复 git commit 提交代码到本地仓库 https://www.jianshu.com/p/c2ec5f06cf1a |Git Reset 三种模式 Git会有三个区域: Working Tree 当前的工作区域 Index/Stage 暂存区域,和git stash命令暂存的地方不一样。使用git add xx,就可以将xx添加近Stage里面 Repository 提交的历史,即使用git commit提交后的结果
媒体云PHP程序开发规范
1. 禁止出现任何Warning/Notice错误,提交的代码必须处理所有的错误; 2. 在控制器中重定向使用 $this->redirect() 3. 变量在使用前,必须初始化,防止变量污染 4. 在前台用户界面禁止连表操作 5. 媒体云部分今后添加aca表数据的时候将id写成固定值,避免使用自增id造成的id不问题 6. migration里不要对aca表有删除的操作 7. jian应用如果需要添加aca表数据,将id定义为和appid一样,避免和媒体云冲突
服务启动关闭
tengine | /etc/init.d/tengine start | /etc/init.d/tengine stop |
php-fpm | /etc/init.d/php-fpm start | /etc/init.d/php-fpm stop |
Elasticsearch | /usr/local/server/elasticsearch/bin/elasticsearch -d | kill -TERM $(ps aux elasticsearch |
nlp | /usr/local/server/Nlp/bin/startup.sh | /usr/local/server/Nlp/bin/shutdown.Beansdb /etc/init.d/beansdb start /etc/init.d/beansdb stop |
redis | /etc/init.d/redis start | /etc/init.d/redis stop |
mysql | /etc/init.d/mysql start | /etc/init.d/mysql stop |
队列 | /etc/init.d/cmc-queue start | /etc/init.d/cmc-queue stop |
转码 | /data/service/VideoTranscode/start.sh | /data/service/VideoTranscode/录播任务分发进程/data/service/VideoChannel/start.sh /data/service/VideoChannel/录播任务处理进程/data/service/VideoMenus/start.sh /data/service/VideoMenus/stop.视频上传sudo -u nginx pm2 start all sudo -u nginx pm2 stop all |
直播点播 | /etc/init.d/tengine start | /etc/init.d/tengine stop |
2020-05-20
$ git pull origin dev Enter passphrase for key '/c/Users/hxwq/.ssh/id_rsa_shenxue': From 172.16.34.150:php-dute/mediacloud-backend * branch dev -> FETCH_HEAD Updating 883ca63..d018524 Fast-forward .gitignore | 6 +- Docs/System/Crossicon.md | 143 + Docs/System/Indexactivity.md | 103 + Docs/globalindex.md | 275 + Docs/link.md | 12 + Docs/member/audit.md | 169 + Frontend/Site/Config/Site.ini | 2 +- Frontend/Site/Models/Model/Member/Audit.php | 251 + .../Site/Models/Model/Specialnew/Specialnew.php | 2 +- Frontend/Site/Models/Model/System/CrossIcon.php | 149 + .../Site/Models/Model/System/Indexactivity.php | 58 + .../Site/Modules/Globalindex/Controllers/Index.php | 144 + Frontend/Site/Modules/Member/Controllers/Audit.php | 306 + .../Site/Modules/System/Controllers/Crossicon.php | 234 + .../Modules/System/Controllers/Indexactivity.php | 135 + .../Site/Modules/System/Controllers/Upload.php | 2 +- Frontend/Site/Public/assets/cloud/boot.js | 279 +- .../Public/assets/cloud/img/module/global-icon.png | Bin 0 -> 20874 bytes Frontend/Site/Public/assets/cloud/site.css | 3059 ++++++--- .../assets/cloud/ui/datepicker/datepicker.js | 4135 ++++++------ .../assets/cloud/ui/uploader-html5/uploader.js | 48 +- .../assets/libraries/UEditor/ueditor.config.js | 4 +- .../assets/module/article/index/template/add.html | 536 +- .../contentmanager/index/template/index.html | 452 +- .../assets/module/globalindex/index/css/apps.css | 513 ++ .../assets/module/globalindex/index/css/index.css | 70 + .../module/globalindex/index/deps/index.json | 16 + .../assets/module/globalindex/index/js/apps.js | 471 ++ .../assets/module/globalindex/index/js/index.js | 14 + .../globalindex/index/template/include/apps.html | 189 + .../module/globalindex/index/template/index.html | 12 + .../common/directive/folderlist/folderlist.js | 198 +- .../assets/module/member/common/js/common.js | 22 +- .../module/member/index/css/authentication.css | 540 +- .../assets/module/member/index/css/index.css | 1905 +++++- .../module/member/index/css/member_details.css | 693 +- .../assets/module/member/index/deps/avator.json | 22 + .../assets/module/member/index/deps/nickname.json | 22 + .../module/member/index/js/authentication.js | 547 +- .../Public/assets/module/member/index/js/avator.js | 231 + .../Public/assets/module/member/index/js/index.js | 737 ++- .../assets/module/member/index/js/nickname.js | 228 + .../member/index/template/authentication.html | 501 +- .../module/member/index/template/avator.html | 150 + .../assets/module/member/index/template/index.html | 133 +- .../module/member/index/template/nickname.html | 145 + .../assets/module/setting/index/css/index.css | 6717 ++++++++++++-------- .../assets/module/setting/index/deps/index.json | 7 +- .../assets/module/setting/index/js/activity.js | 157 + .../assets/module/setting/index/js/attributes.js | 40 +- .../assets/module/setting/index/js/channel.js | 163 + .../Public/assets/module/setting/index/js/index.js | 226 +- .../setting/index/template/include/activity.html | 51 + .../setting/index/template/include/channel.html | 76 + .../setting/index/template/include/sort.html | 14 +- .../module/supermember/index/template/nav.html | 6 +- ...7_155332_add_setting_mobile_menu_cross_icon.php | 44 + Global/Database/Sql/cloud_data.sql | 149 +- Global/Database/Sql/site.sql | 61 + Global/Library/Helper/Sensitive/FilterBaiduAI.php | 133 + 60 files changed, 18395 insertions(+), 7312 deletions(-) create mode 100644 Docs/System/Crossicon.md create mode 100644 Docs/System/Indexactivity.md create mode 100644 Docs/globalindex.md create mode 100644 Docs/link.md create mode 100644 Docs/member/audit.md create mode 100644 Frontend/Site/Models/Model/Member/Audit.php create mode 100644 Frontend/Site/Models/Model/System/CrossIcon.php create mode 100644 Frontend/Site/Models/Model/System/Indexactivity.php create mode 100644 Frontend/Site/Modules/Globalindex/Controllers/Index.php create mode 100644 Frontend/Site/Modules/Member/Controllers/Audit.php create mode 100644 Frontend/Site/Modules/System/Controllers/Crossicon.php create mode 100644 Frontend/Site/Modules/System/Controllers/Indexactivity.php create mode 100644 Frontend/Site/Public/assets/cloud/img/module/global-icon.png create mode 100644 Frontend/Site/Public/assets/module/globalindex/index/css/apps.css create mode 100644 Frontend/Site/Public/assets/module/globalindex/index/css/index.css create mode 100644 Frontend/Site/Public/assets/module/globalindex/index/deps/index.json create mode 100644 Frontend/Site/Public/assets/module/globalindex/index/js/apps.js create mode 100644 Frontend/Site/Public/assets/module/globalindex/index/js/index.js create mode 100644 Frontend/Site/Public/assets/module/globalindex/index/template/include/apps.html create mode 100644 Frontend/Site/Public/assets/module/globalindex/index/template/index.html create mode 100644 Frontend/Site/Public/assets/module/member/index/deps/avator.json create mode 100644 Frontend/Site/Public/assets/module/member/index/deps/nickname.json create mode 100644 Frontend/Site/Public/assets/module/member/index/js/avator.js create mode 100644 Frontend/Site/Public/assets/module/member/index/js/nickname.js create mode 100644 Frontend/Site/Public/assets/module/member/index/template/avator.html create mode 100644 Frontend/Site/Public/assets/module/member/index/template/nickname.html create mode 100644 Frontend/Site/Public/assets/module/setting/index/js/activity.js create mode 100644 Frontend/Site/Public/assets/module/setting/index/js/channel.js create mode 100644 Frontend/Site/Public/assets/module/setting/index/template/include/activity.html create mode 100644 Frontend/Site/Public/assets/module/setting/index/template/include/channel.html create mode 100644 Global/Database/Migration/2020_04_17_155332_add_setting_mobile_menu_cross_icon.php create mode 100644 Global/Library/Helper/Sensitive/FilterBaiduAI.php
2020-07-11
Fast-forward .vscode/sftp.json | 22 ++ .../Api/Mobile/Models/V2/Ctmedia/Account/V1.php | 18 +- .../Api/Mobile/Models/V2/Ctmedia/Common/V1.php | 324 +++++++++++---------- .../Mobile/Models/V2/Ctmedia/Mysubcontent/V1.php | 33 +-- Frontend/Api/Mobile/Models/V2/Digg/Common/V1.php | 26 +- .../Api/Mobile/Models/V2/Member/Bindregist/V1.php | 2 +- .../Api/Mobile/Models/V2/Member/Sociallogin/V1.php | 2 +- .../Api/Mobile/Models/V2/Menudata/Common/V2.php | 106 ++++++- .../Mobile/Models/V2/Menudata/Contentlist/V2.php | 38 ++- .../Api/Mobile/Models/V2/Share/Arealist/V1.php | 56 ++-- Frontend/Api/Mobile/Public/assets/v2/.gitignore | 2 + Frontend/Api/Mobile/Public/assets/v2/config.json | 12 +- .../Mobile/Public/assets/v2/js/client_interface.js | 8 + .../Public/assets/v2/output/article_v5.min.css | 2 +- .../Public/assets/v2/output/article_v5.min.js | 2 +- .../Public/assets/v2/output/article_v5.min_bak.css | 1 - .../Public/assets/v2/output/audio_v5.min.css | 2 +- .../Mobile/Public/assets/v2/output/audio_v5.min.js | 2 +- .../Public/assets/v2/output/gallery_v5.min.css | 2 +- .../Public/assets/v2/output/gallery_v5.min.js | 2 +- .../Public/assets/v2/output/video_v5.min.css | 2 +- .../Mobile/Public/assets/v2/output/video_v5.min.js | 2 +- .../{ => Api/Mobile/Public/assets/v2}/package.json | 0 Frontend/Api/Mobile/Public/sdk/v2/mc.js | 1 + Frontend/Api/Mobile/Views/V2/adandrelated_v5.phtml | 2 +- Frontend/Api/Mobile/Views/V2/article/V5.phtml | 2 +- Frontend/Api/Open/Modules/V1/Controllers/Ugc.php | 138 +++++++++ Frontend/Api/Open/Plugins/Verify.php | 42 +-- Global/Database/Sql/cloud_data.sql | 81 +++--- Global/Library/Core/Core.php | 202 +++++++------ Global/Library/Service/Content/Search.php | 112 +++---- Global/Library/Site/Entity/Lister/HandList.php | 2 +- Global/Library/Site/Mobile/Menu/Basic.php | 2 +- .../Menu/Menu/Process/ThumbListProcessor.php | 49 +++- .../Mobile/Menu/Menu/Process/ThumbProcessor.php | 51 +++- .../Site/Mobile/Menu/Process/InitProcessor.php | 43 +-- .../Site/Mobile/Menu/Process/SourceProcessor.php | 31 +- .../Mobile/Menu/Process/ThumbListProcessor.php | 51 +++- .../Site/Mobile/Menu/Process/ThumbProcessor.php | 55 +++- Global/Library/Site/Mobile/Menu/Ugc.php | 123 ++++++++
2020-07-10
Enter passphrase for key '/c/Users/hxwq/.ssh/id_rsa_shenxue': remote: Enumerating objects: 770, done. remote: Counting objects: 100% (770/770), done. remote: Compressing objects: 100% (290/290), done. remote: Total 770 (delta 405), reused 685 (delta 348) Receiving objects: 100% (770/770), 1.34 MiB | 3.71 MiB/s, done. Resolving deltas: 100% (405/405), completed with 10 local objects. From 172.16.34.150:php-dute/mediacloud-backend * branch dev -> FETCH_HEAD f22e01b..a09648c dev -> origin/dev Updating f22e01b..a09648c Fast-forward Docs/globalindex.md | 233 +----- Docs/inform/index.md | 152 ++++ Frontend/Site/Config/Login.php | 3 +- Frontend/Site/Config/Site.ini | 2 +- Frontend/Site/Controllers/Index.php | 336 +++++---- Frontend/Site/Models/Model/Inform/Inform.php | 155 ++++ Frontend/Site/Models/Model/Member/Audit.php | 63 +- .../Site/Models/Model/Specialnew/Specialnew.php | 827 ++++++++++----------- .../Site/Models/Model/System/Indexactivity.php | 33 +- .../Site/Modules/Globalindex/Controllers/Index.php | 163 ++-- Frontend/Site/Modules/Inform/Controllers/Index.php | 314 ++++++++ Frontend/Site/Modules/Member/Controllers/Audit.php | 176 +++-- .../Site/Modules/Special/Controllers/Index.php | 232 +++--- .../Site/Modules/System/Controllers/Crossicon.php | 2 +- .../Modules/System/Controllers/Indexactivity.php | 126 ++-- Global/Database/Sql/cloud_data.sql | 33 + Global/Database/Sql/site.sql | 45 +- Global/Library/Core/Core.php | 28 +- Global/Library/Core/Queue/Worker/Ugc/Content.php | 96 +++ Global/Library/General/File/BeansDb.php | 26 +- Global/Library/Service/Content/Content.php | 2 +- Global/Config/Search.php | 2 +-
2020-09-01
.../Models/Model/Contentmanager/Contentmanager.php | 281 ++-- .../Site/Modules/Comment/Controllers/Index.php | 2 + .../Site/Modules/Globalindex/Controllers/Index.php | 1 - Frontend/Site/Modules/Member/Controllers/Audit.php | 59 +- Frontend/Site/Public/assets/cloud/site.js | 1736 ++++++++++---------- .../cloud/ui/relatedReading/relatedReading.js | 65 +- .../Public/assets/module/article/index/js/add.js | 1 - .../ctmedia/component/ueditor/ueditorDirective.js | 1139 ++++++------- .../module/globalindex/index/template/index.html | 5 +- .../govmedia/component/ueditor/ueditorDirective.js | 1120 ++++++------- .../Public/assets/module/mobile/menu/js/index.js | 8 +- Global/Config/Search.php | 3 +- Global/Database/Sql/site.sql | 6 +- .../Library/Core/Queue/Worker/AsyncRecommend.php | 92 +- .../Library/Core/Queue/Worker/Member/Destroy.php | 160 +- Global/Library/Service/Content/Content.php | 22 +- Global/Library/Service/Content/ContentRelate.php | 94 +-
t
2020-09-04
Frontend/Site/Models/Model/System/CrossIcon.php | 45 +++++++ .../Site/Modules/System/Controllers/Crossicon.php | 86 ++++++++++--- .../assets/module/setting/index/css/index.css | 10 +- .../assets/module/setting/index/js/channel.js | 12 +- .../setting/index/template/include/channel.html | 12 +- Global/Database/Sql/site.sql | 15 ++- .../Library/Core/Queue/Worker/Member/Destroy.php | 3 +- Global/Library/Core/Queue/Worker/NewMedia.php | 143 --------------------- .../Core/Queue/Worker/NewMedia/Callback.php | 45 +++++++ .../Library/Core/Queue/Worker/NewMedia/Collect.php | 111 ++++++++++++++++ Global/Library/Service/Content/Content.php | 7 +- .../Library/Site/Listener/SyncNewMediaListener.php | 2 +- 12 files changed, 317 insertions(+), 174 deletions(-) delete mode 100644 Global/Library/Core/Queue/Worker/NewMedia.php create mode 100644 Global/Library/Core/Queue/Worker/NewMedia/Callback.php create mode 100644 Global/Library/Core/Queue/Worker/NewMedia/Collect.php