12345678910111213141516171819202122232425262728293031323334 |
- <?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 TaskProc
- *
- * @author c'y'zhao
- */
- class TaskProc {
- /**
- * 逻辑分发
- * 所有的Proc中必须有这样一个方法
- * @param Req $req
- */
- public static function procMain($req) {
- switch ($req->cmd) {
- case CmdCode::cmd_task_getInfo: # 6201
- return TaskProc::getTsskInfo();
- case CmdCode::cmd_task_getReward: # 6202
- return TaskProc::getReward();
- default:
- Err(ErrCode::cmd_err);
- }
- }
-
-
- }
|