# 前端接口

# 數據接口

預留ajax數據接口,方便瀑布流加載,該接口較為簡易,支持參數有限,需要豐富參數的接口最好自定義擴展。

  • 接口 index.php/ajax/data.html
  • 請求方式 GETPOST
  • Content-Type form-data
  • 參數
參數名 示例值 是否必填 參數類型 參數描述
mid 1 必填 text 模型mid 1影片、2文章、3專題、8明星、9角色、11劇情
limit 20 必填 text 每頁條數,支持10,20,30
page 1 必填 text 頁碼,最多不超過20頁,防止非法采集
tid 1 必填 text 分類id

-成功響應示例

{
	"code": 1,
	"msg": "數據列表",
	"page": 1,
	"pagecount": 221,
	"limit": 10,
	"total": 2204,
	"list": [
		{
			"vod_id": 3683,
			"type_id": 1,
			"type_id_1": 0,
			"group_id": 0,
			"vod_name": "不表演才藝居然不給我飯吃#抖音汽車",
			...
		},
		{
			"vod_id": 3685,
			"type_id": 1,
			"type_id_1": 0,
			"group_id": 0,
			"vod_name": "所以非要這樣嗎?#當別人問我上班..",
			...
		},
	]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

# 搜素聯想

  • 接口 /index.php/ajax/suggest
  • 請求方式 GETPOST
  • 參數
參數名 示例值 是否必填 參數類型 參數描述
mid 1 必填 text 模型mid 1影片、2文章、3專題、8明星、9角色、11劇情
wd 招魂 必填 text 關鍵詞
limit 10 必填 text 獲取數量
imestamp 1574339368127 必填 text 時間戳
  • 返回數據
{
	"code": 1,
	"msg": "數據列表",
	"page": 1,
	"pagecount": 3,
	"limit": 10,
	"total": 25,
	"list": [
		{
			"id": 1593,
			"name": "我也搞不懂他是怎麽被困這裏的 #宅家dou劇場  #我的觀影報告  #螢火計劃",
			"en": "woyegaobudongtashizenmebeikunzhelidezhaijiadoujuchangwodeguanyingbaogaoyinghuojihua",
			"pic": "https://p3.douyinpic.com/tos-cn-p-0015/34f94d7f8bda45048c14988492ef9500_1620207826~tplv-dy-360p.jpeg?from=4257465056&s=&se=false&sh=&sc=&l=202105312051560101501660281A0EC310&biz_tag=feed_cover"
		},
		{
			"id": 1467,
			"name": "假如愛情來臨我的心永遠不會遲到@DOU+小助手",
			"en": "jiaruaiqinglailinwodexinyongyuanbuhuichidaoDOUxiaozhushou",
			"pic": "https://p3.douyinpic.com/tos-cn-p-0015/be736dd849f744e7848473210c3c8131_1619099706~tplv-dy-360p.jpeg?from=4257465056"
		},
		{
			"id": 1360,
			"name": "有人說我的視頻沒營養 怎麽?你的視頻在燉骨頭湯?",
			"en": "yourenshuowodeshipinmeiyingyangzenmenideshipinzaidungutoutang",
			"pic": "https://p9.douyinpic.com/tos-cn-p-0015/2af445900fa14c64b03c0d0390e2bd81_1618493679~tplv-dy-360p.jpeg?from=4257465056&s=&se=false&sh=&sc=&l=20210531205248010150201080310EC297&biz_tag=feed_cover"
		},
		{
			"id": 1350,
			"name": "有了油菜花,就承托不出我的馬甲線了,",
			"en": "youliaoyoucaihuajiuchengtuobuchuwodemajiaxianliao",
			"pic": "https://p26.douyinpic.com/tos-cn-p-0015/47c6c91025a64b6daa95ee55d33fdcff_1618363339~tplv-dy-360p.jpeg?from=4257465056"
		},
		{
			"id": 1301,
			"name": "#抖in美好溧陽 #萬物皆可智慧 #沒事開心一下 #擺好你的姿態 #沒錯是我的腿呀 #你的女友已上線請查收",
			"en": "douinmeihaoliyangwanwujiekezhihuimeishikaixinyixiabaihaonidezitaimeicuoshiwodetuiyanidenvyouyishangxianqingchashou",
			"pic": "https://p29.douyinpic.com/tos-cn-p-0015/6b3f2a301a2b40fd805ed8e1c5b57de6_1618228574~tplv-dy-360p.jpeg?from=4257465056"
		},
		{
			"id": 1284,
			"name": "好久沒有直播有沒有想我的?@抖音小助手 #舞蹈 #創作靈感",
			"en": "haojiumeiyouzhiboyoumeiyouxiangwodedouyinxiaozhushouwudaochuangzuolinggan",
			"pic": "https://p6.douyinpic.com/tos-cn-p-0015/124267af2a314b54bed771e528cac1a8_1618113455~tplv-dy-360p.jpeg?from=4257465056&s=&se=false&sh=&sc=&l=202105312053370101501821001E0ED364&biz_tag=feed_cover"
		},
		{
			"id": 1246,
			"name": "關於我的故事還是聽我的版本好一點#原相機",
			"en": "guanyuwodegushihuanshitingwodebanbenhaoyidianyuanxiangji",
			"pic": "https://p9.douyinpic.com/tos-cn-p-0015/dfa28fcbe6e840f094f824827ff8b7a0_1617918242~tplv-dy-360p.jpeg?from=4257465056&s=&se=false&sh=&sc=&l=20210531205331010150157232090F227B&biz_tag=feed_cover"
		},
		{
			"id": 1199,
			"name": "#創作靈感 #牛仔褲 小時候偷喝我爸兩罐紅牛,追著我打,笑死,我的能量超乎你想象",
			"en": "chuangzuolingganniuzikuxiaoshihoutouhewobaliangguanhongniuzhuizhuowodaxiaosiwodenengliangchaohunixiangxiang",
			"pic": "https://p26.douyinpic.com/tos-cn-p-0015/488f094a79154123ad43f3152ef3fdd7_1617541987~tplv-dy-360p.jpeg?from=4257465056&s=&se=false&sh=&sc=&l=202105312054250101502221495B0F3590&biz_tag=feed_cover"
		},
		{
			"id": 1189,
			"name": "你有你的背景,我有我的背影,安排#大長腿",
			"en": "niyounidebeijingwoyouwodebeiyinganpaidachangtui",
			"pic": "https://p26.douyinpic.com/tos-cn-p-0015/6f993bd8cd46412c82d41df0f3a64e31_1616750332~tplv-dy-360p.jpeg?from=4257465056"
		},
		{
			"id": 1161,
			"name": "我的小蠻腰中午可以露出來了,繼續減肥再瘦十斤#微胖",
			"en": "wodexiaomanyaozhongwukeyiluchulailiaojixujianfeizaishoushijinweipang",
			"pic": "https://p6.douyinpic.com/tos-cn-p-0015/71ccc83db7674648a83d08314a2323de_1617954719~tplv-dy-360p.jpeg?from=4257465056&s=&se=false&sh=&sc=&l=202105312054120101511722311C0F10D3&biz_tag=feed_cover"
		}
	],
	"url": "/index.php/vodsearch/mac_wd-------------.html"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

# 頂踩接口

  • 接口 /index.php/ajax/digg.html
  • 請求方式 GETPOST
  • 參數
參數名 示例值 是否必填 參數類型 參數描述
mid 1 必填 text 模型mid 1影片、2文章、3專題、8明星、9角色、11劇情
id 1542 必填 text 評論的數據id 影片id 、文章id等
type up 必填 text 類型,up頂、down踩
  • 返回數據
{
	"code": 1,
	"msg": "操作成功!",
	"data": {
		"up": 826,
		"down": 511
	}
}
1
2
3
4
5
6
7
8

# 記錄接口

  • 請求方式 GETPOST
  • 接口 index.php/ajax/hits
參數 示例值 是否必填 參數描述
mid 1 必填 模型mid 1影片、2文章、3專題、8明星、9角色、11劇情
id 1233 必填 評論的數據id 影片id 、文章id等
type 2 必填 瀏覽1、 收藏2, 想看3、播放4、下載5
ac set 必填 參數為 set 是提交,不為 set 是獲取

返回數據

{"code":1,"msg":"保存成功!"}
1

# 點擊量提交

  • 接口 /index.php/ajax/digg.html
  • 請求方式 GETPOST
  • Content-Type form-data
  • 參數
參數 示例值 是否必填 參數描述
mid 1 必填 模型mid 1影片、2文章、3專題、8明星、9角色、11劇情
id 1233 必填 評論的數據id 影片id 、文章id等
type update 必填 更新
  • 成功響應示例
{
	"code": 1,
	"msg": "操作成功!",
	"data": {
		"hits": 425,
		"hits_day": 2,
		"hits_week": 2,
		"hits_month": 2
	}
}
1
2
3
4
5
6
7
8
9
10

# 來路統計

  • 接口 /index.php/ajax/referer
  • 請求方式 GETPOST
  • 參數
參數 示例值 是否必填 參數描述
domain www.apivv.cn 必填 來路域名,可用 jsdocument.referrer 來提取
url https://www.apivv.cn/index.html 必填 來路url,直接提交 document.referrer
type update 必填 更新

模板中只要引入了 \static\js\home.j 那就是只需在公用底部放一個 classmac_referer 的div就可以了。

<div class="mac_referer"></div>
1

響應結果示例

  • 請求方式 GET
{
	"code": 1,
	"msg": "ok",
	"data": {
		"referer": 1,
		"referer_day": 1,
		"referer_week": 1,
		"referer_month": 1
	}
}
1
2
3
4
5
6
7
8
9
10

# 評論接口

# 獲取評論

  • 接口 /index.php/comment/ajax.html
  • 請求方式 GET
參數 示例值 是否必填 參數描述
rid 1245 必填 數據id
mid 1 必填 模型mid 1影片、2文章、3專題、8明星、9角色、11劇情
page 1 必填 頁碼

獲取評論的數據模板為 /html/comment/ajax.html,網頁端獲取評論列表會從這裏提取數據返回html數據給接口,當然蘋果cms默認已經給我們做好了這些。只需引入 \static\js\home.j 然後在需要展示評論的位置加入以下代碼:

<div class="ui-title">
   <h3>評論</h3>
</div>
<div class="mac_comment" data-id="{$obj.vod_id}" data-mid="{$maccms.mid}" ></div>
<script>
   $(function(){
      MAC.Comment.Login = {$comment.login};
      MAC.Comment.Verify = {$comment.verify};
      MAC.Comment.Init();
      MAC.Comment.Show(1);
   });
</script>

1
2
3
4
5
6
7
8
9
10
11
12
13

請求響應結果示例

"    <!--評論開始-->\n    <form class=\"comment_form cmt_form clearfix\"  >\n        <input type=\"hidden\" name=\"comment_pid\" value=\"0\">\n        <!--評論框-->\n        <div class=\"input_wrap fl clearfix\">\n            <textarea class=\"comment_content fl\" name=\"comment_content\" placeholder=\"有事沒事說兩句...\"><\/textarea>\n            <div class=\"fl clearfix handle\">\n                <div class=\"comment_face_panel face\">\n                    <i class=\"icon-face\"><\/i>\n                <\/div>\n                <div class=\"comment_face_box face-box\">\n                                        <img data-id=\"1\" src=\"\/static\/images\/face\/1.gif\">\n                                        <img data-id=\"2\" src=\"\/static\/images\/face\/2.gif\">\n                                        <img data-id=\"3\" src=\"\/static\/images\/face\/3.gif\">\n                                        <img data-id=\"4\" src=\"\/static\/images\/face\/4.gif\">\n                                        <img data-id=\"5\" src=\"\/static\/images\/face\/5.gif\">\n                                        <img data-id=\"6\" src=\"\/static\/images\/face\/6.gif\">\n                                        <img data-id=\"7\" src=\"\/static\/images\/face\/7.gif\">\n                                        <img data-id=\"8\" src=\"\/static\/images\/face\/8.gif\">\n                                        <img data-id=\"9\" src=\"\/static\/images\/face\/9.gif\">\n                                        <img data-id=\"10\" src=\"\/static\/images\/face\/10.gif\">\n                                        <img data-id=\"11\" src=\"\/static\/images\/face\/11.gif\">\n                                        <img data-id=\"12\" src=\"\/static\/images\/face\/12.gif\">\n                                        <img data-id=\"13\" src=\"\/static\/images\/face\/13.gif\">\n                                        <img data-id=\"14\" src=\"\/static\/images\/face\/14.gif\">\n                                        <img data-id=\"15\" src=\"\/static\/images\/face\/15.gif\">\n                                        <img data-id=\"16\" src=\"\/static\/images\/face\/16.gif\">\n                                    <\/div>\n                <div class=\"remaining-w\">還可以輸入<span class=\"comment_remaining remaining fr\" >200<\/span><\/div>\n                <div class=\"smt fr clearfix\">\n                        <span style=\"display: none;\">\n                            <span><\/span>\n                        <\/span>\n                                        驗證碼:<input class=\"mac_verify cmt_text\" type=\"text\" id=\"verify\" name=\"verify\" \/>\n                                        <input class=\"comment_submit cmt_post\" type=\"button\" value=\"發布\">\n                <\/div>\n            <\/div>\n        <\/div>\n\n    <\/form>\n        <div class=\"cmt_wrap\" >\n            <p class=\"smt_wrap fl clearfix\">\n                <span class=\"total fl\">共<em id=\"item_count\">0<\/em>條評論<\/span>\n            <\/p>\n            \n        <\/div>\n    <!--評論結束-->\n    <div class=\"mac_pages\" >\n        <div class=\"page_tip\">共0條數據,當前\/頁<\/div>\n        <div class=\"page_info\">\n            <a class=\"page_link\" href=\"javascript:void(0);\" onclick=\"MAC.Comment.Show(1)\" title=\"首頁\">首頁<\/a>\n            <a class=\"page_link\" href=\"javascript:void(0);\" onclick=\"MAC.Comment.Show('')\" title=\"上一頁\">上一頁<\/a>\n                        <a class=\"page_link\" href=\"javascript:void(0)\" onclick=\"MAC.Comment.Show('')\" title=\"下一頁\">下一頁<\/a>\n            <a class=\"page_link\" href=\"javascript:void(0)\" onclick=\"MAC.Comment.Show('')\" title=\"尾頁\">尾頁<\/a>\n\n            <input class=\"page_input\" type=\"text\" placeholder=\"頁碼\" id=\"page\" autocomplete=\"off\" style=\"width:40px\">\n            <button class=\"page_btn\" type=\"button\"  onclick=\"MAC.Comment.Show($('#page').val())\">GO<\/button>\n        <\/div>\n    <\/div>\n"
1

# 提交評論

  • 接口 m/index.php/comment/saveData
  • 請求方式 POST

請求參數

參數 示例值 是否必填 參數描述
comment_mid 1 必填 模型mid 1影片、2文章、3專題、8明星、9角色、11劇情
comment_content 我留了個評論 必填 評論內容
comment_pid 0 選填 回復評id,回復的時候用到
verify 9223 選填 評論驗證碼,後臺如果開啟就要提交驗證碼
comment_rid 1560 必填 評論的數據 文章id、影片id

成功響應結果

{"code":1,"msg":"感謝你的留言!"}
1

# 留言本接口

  • 接口地址 /index.php/gbook/saveData
  • 請求方式 POST

請求參數

參數 示例值 是否必填 參數描述
gbook_content 我留了個言 必填 留言內容
verify 9223 選填 評論驗證碼,後臺如果開啟就要提交驗證碼

成功返回示例

{code: 1, msg: "感謝你的留言!"}
1

# 定時任務

此接口用來模擬定時執行任務,因為php端腳本不可能弄個 24 小時的計時器,所以必須又 前端來觸發,也就是用戶訪問時判斷當前時間戳觸發。

  • 接口地址 /api.php/timming/index
  • 請求方式 GET
參數 示例值 是否必填 參數描述
t 1545 必填 隨機值、時間戳都可以 如:Math.random()

訪問頁面觸發定時任務,建議放到首頁底部; 由於入口文件名可變,默認是api.php,如需修改請自定義data-file="xxx.php"

<span style="display: none;" class="mac_timming" data-file="" ></span>
1

# 後臺事件

蘋果CMS開放了幾個立即執行後臺事件執行接口。當然是執行安全範圍內並且已配置好的事件。例如:生成html采集資源站采集自定義規則清空緩存網址推送等等.

# 生成html

  • 接口 api.php/timming/make/param/
  • 請求方式 GET

url參數大全

生成首頁 /api.php/timming/make/param/ac/index
生成wap首頁 /api.php/timming/make/param/ac/index/ac2/wap
生成生成地圖 /api.php/timming/make/param/ac/map

視頻生成

全部分類 /api.php/timming/make/param/ac=type&tab=vod&vodtype=1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,27
當天分類 /api.php/timming/make/param/ac=type&tab=vod&vodtype=&ac2=day
全部內容 /api.php/timming/make/param/ac=info&tab=vod&vodtype=1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,27
當天內容 /api.php/timming/make/param/ac=info&tab=vod&vodtype=&ac2=day
未生成的 /api.php/timming/make/param/ac=info&tab=vod&ac2=nomake
一鍵當天 /api.php/timming/make/param/ac=info&tab=vod&vodtype=&ac2=day&jump=1

文章生成

全部分類 /api.php/timming/make/param/ac=type&tab=art&arttype=5,17,18
當天分類 /api.php/timming/make/param/ac=type&tab=art&arttype=&ac2=day
全部內容 /api.php/timming/make/param/ac=info&tab=art&arttype=5,17,18
當天內容 /api.php/timming/make/param/ac=info&tab=art&arttype=&ac2=day
未生成的 /api.php/timming/make/param/ac=info&tab=art&ac2=nomake
一鍵當天 /api.php/timming/make/param/ac=info&tab=art&arttype=&ac2=day&jump=1

生成專題

選擇專題 /api.php/timming/make/param/ac=topic_info
全部專題 /api.php/timming/make/param/ac=topic_info&topic=7,6,5,4,3,2,1
專題首頁 /api.php/timming/make/param/ac=topic_index

生成自定義頁面:
自定義頁面 /api.php/timming/make/param/ac=label&label=aaa$$$top.html


RSS訂閱文件  /api.php/timming/make/param/ac=rss&ac2=index
谷歌SiteMap  /api.php/timming/make/param/ac=rss&ac2=google
百度SiteMap  /api.php/timming/make/param/ac=rss&ac2=baidu
SO-SiteMap  /api.php/timming/make/param/ac=rss&ac2=so
搜狗SiteMap  /api.php/timming/make/param/ac=rss&ac2=sogou
Bing-SiteMap  /api.php/timming/make/param/ac=rss&ac2=bing
神馬SiteMap  /api.php/timming/make/param/ac=rss&ac2=sm

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

# 采集資源站

  • 接口 api.php/timming/collect/param/
  • 請求方式 GET
采集當天 /api.php/timming/collect/param/ac=cj&cjflag=0f8170804201c8383ff33bd788d1a2f8&cjurl=http%3A%2F%2Fcj.wlzy.tv%2Finc%2Fapi_mac_m3u8.php&h=24&t=&ids=&wd=&type=1&mid=1&opt=0&filter=0&filter_from=&param=  

采集本周 /api.php/timming/collect/param/ac=cj&cjflag=0f8170804201c8383ff33bd788d1a2f8&cjurl=http%3A%2F%2Fcj.wlzy.tv%2Finc%2Fapi_mac_m3u8.php&h=168&t=&ids=&wd=&type=1&mid=1&opt=0&filter=0&filter_from=&param=  

采集所有 /api.php/timming/collect/param/ac=cj&cjflag=0f8170804201c8383ff33bd788d1a2f8&cjurl=http%3A%2F%2Fcj.wlzy.tv%2Finc%2Fapi_mac_m3u8.php&h=&t=&ids=&wd=&type=1&mid=1&opt=0&filter=0&filter_from=&param= 
1
2
3
4
5

# 清空緩存

  • 接口 api.php/timming/cache/param/
  • 請求方式 GET
參數 示例值 是否必填 參數描述
ac 任意 必填 任意值,建議使用時間戳
 /api.php/timming/make/cache/ac=121
1

# 網址推送

  • 請求方式 GET
  • 接口 api.php/timming/urlsend/param/
百度主動推送當天視頻 /api.php/timming/urlsend/param/ac=Baidu&limit=50&page=1&ac2=today&mid=1
百度主動推送當天文章 /api.php/timming/urlsend/param/ac=Baidu&limit=50&page=1&ac2=today&mid=2
百度主動推送當天專題 /api.php/timming/urlsend/param/ac=Baidu&limit=50&page=1&ac2=today&mid=3
百度主動推送當天演員 /api.php/timming/urlsend/param/ac=Baidu&limit=50&page=1&ac2=today&mid=8
百度主動推送當天角色 /api.php/timming/urlsend/param/ac=Baidu&limit=50&page=1&ac2=today&mid=9
百度快速推送當天視頻 /api.php/timming/urlsend/param/ac=Baidufast&limit=10&page=1&ac2=today&mid=1
百度快速推送當天文章 /api.php/timming/urlsend/param/ac=Baidufast&limit=10&page=1&ac2=today&mid=2
百度快速推送當天專題 /api.php/timming/urlsend/param/ac=Baidufast&limit=10&page=1&ac2=today&mid=3
百度快速推送當天演員 /api.php/timming/urlsend/param/ac=Baidufast&limit=10&page=1&ac2=today&mid=8
百度快速推送當天角色 /api.php/timming/urlsend/param/ac=Baidufast&limit=10&page=1&ac2=today&mid=9
1
2
3
4
5
6
7
8
9
10

# 生成二維碼

官方api,用於當前url生成二維碼,便於用戶分享網址!

  • 接口地址 //api.maccms.la/qrcode/index/w/150/h/150/url/ 蘋果CMS生成二維碼使用方法已經在 home.js 集成了,

使用示例

<img class="mac_qrcode" alt="掃一掃手機看"/>
1

# 生成短網址

官方api,用於url生成短網址,便於用戶分享網址!

  • //api.maccms.la/shorten/index/url/ 使用方法已經在 home.js 集成了,

使用示例

<div class="mac_shorten"></div>
<script>
   MAC.Shorten.Init();
</script>
1
2
3
4

# 用戶接口

用戶接口大部分都需要在用戶登錄狀態下才能正常使用,用於常見的信息提交!

# 用戶登錄接口

當前登錄接口為cms 默認的網頁登錄接口,app端不支持圖像驗證碼提交,請務必關閉登錄驗證碼! 該接口返回的 header 信息可以用來 當做 cookie 存儲,可用於需要提交cookie 的接口

  • 接口 /index.php/user/login
  • 請求方式 POST
  • Content-Type form-data
  • 參數
參數 示例值 是否必填 參數描述
user_name ceshi123 必填 -
user_pwd admin123 必填 -

成功響應示例

{
	"code": 1,
	"msg": "登錄成功"
}
1
2
3
4

# 用戶註冊接口

  • 接口 /index.php/user/reg
  • 請求方式 POST
  • Content-Type form-data
  • 參數
參數 示例值 是否必填 參數描述
user_name ceshi123 必填 註冊用戶名
user_pwd admin123 必填 註冊登錄密碼
user_pwd2 admin123 必填 確認密碼
ac phone 選填 註冊驗證類型,手機驗證phone 、郵箱驗證email
code 驗證碼 選填 手機或者郵箱的驗證密碼
verify 驗證碼 選填 後臺開啟註冊驗證碼時必填

成功響應示例

{
	"code": 1,
	"msg": "註冊成功"
}
1
2
3
4

# 信息發送接口

  • 接口 /index.php/user/reg_msg
  • 參數
參數 示例值 是否必填 參數描述
ac phone 選填 註冊驗證類型,手機驗證phone 、郵箱驗證email
to admin@qq.com 選填 手機或者郵箱

成功響應示例

{
	"code": 1,
	"msg": "信息已發送"
}
1
2
3
4

# 修改資料接口

用於用戶修改個人信息,如 修改密碼、修改昵稱、綁定信息,需要用戶登錄狀態 的cookie

  • 接口 /index.php/user/info
  • 請求方式 POST
  • Content-Type form-data
  • 參數
參數 示例值 是否必填 參數描述
user_nick_name 大圖模板 選填 修改昵稱
user_pwd admin888 必填 原始密碼
user_pwd1 admin888 選填 新密碼,不修改密碼的話就留空
user_pwd2 admin888 選填 確定密碼,不修改密碼的話就留空
user_qq 834023388 選填 用戶QQ
user_email admin@163.com 選填 用戶綁定郵箱,綁定時需要驗證郵箱可用信息發送接口
user_phone admin@163.com 選填 用戶綁手機號,綁定時需要短信驗證

# 上傳頭像接口

支持bs64 和 文件類型,需要用戶登錄狀態 的cookie

  • 接口 /index.php/user/portrait
  • 請求方式 POST
  • Content-Type form-data

參數

參數 示例值 是否必填 參數描述
file 圖片文件 必填 合法圖片文件 type="file"
imgdata base64 必填 合法圖片類base64編碼

成功響應示例

{
	"code": 1,
	"msg": "頭像上傳成功",
   "file":"upload/user/4/4.jpg"
}
1
2
3
4
5

# 在線充值接口

# 卡密充值接口

# 升級會員接口

# 刪除記錄接口

# 積分提現接口