1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- /**
- * RoleController.php UTF-8
- * 角色上报
- *
- * @date : 2018/1/16 16:51
- *
- * @license 这不是一个自由软件,未经授权不许任何使用和传播。
- * @author : wuyonghong <wyh@huosdk.com>
- * @version : HUOSDK 8.0
- */
- namespace api\apple\controller\v8;
- use api\common\controller\AppleApiBaseController;
- use huo\controller\member\Role;
- use think\Request;
- class RoleController extends AppleApiBaseController {
- public function __construct(Request $request = null) {
- parent::__construct($request);
- }
- public function _initialize() {
- parent::_initialize();
- }
- /**
- * 上传角色信息
- * http://doc.1tsdk.com/138?page_id=2907
- * 【域名】/v8/user/uprole
- */
- public function save() {
- $this->checkLogin();
- $_game_rq = $this->setGameData();
- $_role_rq = $this->setRoleData();
- $_mem_rq = $this->setMemData();
- $_mem_rq->setMemId($this->mem_id);
- $_device_rq = $this->setDeviceData();
- $_role_class = new Role();
- $_rs = $_role_class->insertLog($_mem_rq, $_role_rq, $_game_rq, 0.00, $_device_rq);
- if (false !== $_rs) {
- $this->success(lang('SUCCESS'));
- }
- $this->error(lang('ERROR'));
- }
- }
|