|
@@ -0,0 +1,45 @@
|
|
|
|
+<?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);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|