123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- namespace loyalsoft;
- /**
- * Description of StatisticsProc
- *
- * @author cyzhao
- */
- class StatisticsProc {
-
- /**
- * 玩家自己任务完成统计
- * @param type $id
- */
- static function SelfTaskDataCollect($taskId) {
- $task = $taskId."-".time();
-
- $arr = array();
- $arr[] = $task;
-
- $num = gMem()->rpush("SelfTaskDataCollect-".req()->uid."-". req()->zoneid, $arr);
- }
-
- /**
- * 统计当前服下uid的最新的任务id
- * @param type $taskId
- */
- static function TaskDataCollect($taskId) {
- $key = "TaskDataCollect-".req()->zoneid;
- gMem()->hset($key, req()->uid, $taskId);
- }
-
- // static function TaskDataCollect($taskId) {
- // $key = "TaskDataCollect-".req()->zoneid;
- // gMem()->hset($key, req()->uid, $taskId);
- // }
-
- }
|