>獲取簽到數據
~~~[api]
get:/index.php/signed/Apisigned/member_signed_info
int:starttime= #簽到數據的開始時間戳 starttime 和 endtime 留空表示當月
int:endtime= #簽到數據的結束時間戳 starttime 和 endtime 留空表示當月
<<<
success
{
"err": 0,
"continuous": 3,
"current_timeslot_times": 3,
"total_times": 3,
"todaySigned": 1,
"signed_contact_is": "2",
"rewardList": {
"4": {
"point_type": "point",
"point_name": "積分",
"point_unit": "分",
"point": "210",
"ico": "\/news\/public\/Upload\/admin\/1\/5c91eed377973.png",
"decimal": 0,
"reward": "10"
},
"3": {
"point_type": "money",
"point_name": "余額",
"point_unit": "元",
"point": "3,861.00",
"ico": "\/news\/public\/Upload\/admin\/1\/5c91eed377973.png",
"decimal": 2,
"reward": "5"
},
"1": {
"point_type": "point",
"point_name": "積分",
"point_unit": "分",
"point": "210",
"ico": "\/news\/public\/Upload\/admin\/1\/5c91eed377973.png",
"decimal": 0,
"reward": "5"
}
},
"data": {
"2020_03_05": {
"id": 4,
"userid": 1,
"addtime": 1583419292,
"point": {
"point": 5,
"point_type": "money",
"point_name": "余額",
"point_unit": "元",
"ico": "\/news\/public\/Upload\/admin\/1\/5c91eed377973.png",
"decimal": 2
},
"positionX": "0.000000",
"positionY": "0.000000",
"type": "point",
"point_type": "money"
},
"2020_03_04": {
"id": 3,
"userid": 1,
"addtime": 1583315841,
"point": {
"point": 2,
"point_type": "money",
"point_name": "余額",
"point_unit": "元",
"ico": "\/news\/public\/Upload\/admin\/1\/5c91eed377973.png",
"decimal": 2
},
"positionX": "0.000000",
"positionY": "0.000000",
"type": "point",
"point_type": "money"
},
"2020_03_03": {
"id": 2,
"userid": 1,
"addtime": 1583229441,
"point": {
"point": 5,
"point_type": "point",
"point_name": "積分",
"point_unit": "分",
"ico": "\/news\/public\/Upload\/admin\/1\/5c91eed377973.png",
"decimal": 0
},
"positionX": "0.000000",
"positionY": "0.000000",
"type": "point",
"point_type": "point"
}
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
| 字段 | 描述 |
| --- | --- |
| continuous | 連續簽到的天數 |
| current_timeslot_times| 當前時間段簽到次數,非連續 |
| todaySigned| 今天是否簽到 |
| signed_contact_is| 簽到獎勵天數是否按照連續簽到天數累計,1:連續簽到才獎勵,2:不連續累計,只要簽到達到天數就獎勵 |
| total_times| 總共簽到次數 |
| rewardList | 簽到獎勵列表,key:為累計簽到天數,如果 signed_contact_is為1表示連續簽到天數,為2表示非連續簽到天數。值為簽到獎勵的積分數據(point_type:積分標識,point_name:積分名稱,point_unit:積分單位,point:當前用戶所擁有的積分數,ico:積分類型的圖標,decimal:積分小數位數,reward:簽到累計達到key天獎勵的積分數),如案例中表示,簽到累計達到1,3,4天時分別獎勵對應的積分|
| data | 簽到數據,key為簽到日期,值為簽到的數據,userid:簽到用戶的id,addtime:簽到時間戳,point:(point:當前用戶所擁有的積分數,point_type:積分標識,point_name:積分名稱,point_unit:積分單位,ico:積分圖標,decimal:積分保存的小數位數,reward:簽到獎勵的積分數) |
>今日簽到
~~~[api]
get:/index.php/signed/Apisigned/member_signed
<<<
success
{
"err": 0,
"data": {
"reward": "5",
"point_type": "point",
"point_name": "積分",
"point_unit": "分",
"continuous": 1,
"current_timeslot_times": 1,
"addtime": 1583469947
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
| 字段 | 描述 |
| --- | --- |
| continuous | 連續簽到的天數 |
| current_timeslot_times| 當前時間段簽到次數,非連續 |
| reward| 今日簽到獲取的積分數 |
| point_type| 簽到獲取的積分標識 |
| point_name| 簽到獲取的積分的名稱 |
| point_unit| 簽到獲取積分的單位 |
| addtime| 簽到時間戳|
- 序言
- 基礎
- 源碼包
- 核心包
- 完整包
- 系統模塊
- 安裝模塊
- 后臺模塊
- 插件模塊
- 插件開發
- 開發基礎
- 權限開發
- 菜單開發
- 開發調試
- 碎片開發
- 碎片鉤子預設表
- 插件說明
- 字段插件
- 插件介紹
- 字段使用
- 單行文本
- 多行文本
- 選項-下拉
- 選項-復選
- 選項-單選
- 選項-滑塊
- 顏色選擇器
- 星級評分
- 日期時間
- 文件上傳
- 編輯器
- API接口
- 微信插件
- 微信配置
- 公眾號配置
- 支付配置
- 微信支付使用
- API類庫
- 紅包發放
- 付款到零錢
- 碎片
- 公眾號碎片
- 紅包碎片
- 付款到零錢碎片
- API微信接口
- 支付寶插件
- 支付寶配置
- 支付寶支付使用
- api接口
- api接口后端開發
- api接口前端使用
- API參數接口
- 會員插件
- 登錄使用
- 會員碎片
- API會員接口
- API注冊接口
- 積分插件
- 積分設置
- 積分碎片
- API積分接口
- API提現接口
- API兌換接口
- API充值接口
- 訂單
- 訂單碎片
- API訂單接口
- 商城
- 商城鉤子
- API商城接口
- API商城會員接口
- 簽到
- 簽到設置
- 簽到碎片
- API簽到接口
- 上傳
- 上傳設置
- 上傳JS接口
- 推廣插件
- 海報設置
- API海報接口
- 文章插件
- 文章設置
- 文章鉤子
- API文章接口
- API文章會員接口
- 管理員
- 管理員碎片
- 站內信
- API站內信接口
- 雜項
- 菜單
- 菜單設置
- API菜單接口
- 錯誤碼
- 支付碎片
- 支付
- 充值
- 購買會員組
- 購買產品