示例#1
0
文件: HelpGet.php 项目: uning/mallb
 /**
  * 帮助
  * @param $params
  *   require  u      --  玩家id
  *   require  fid      --  朋友id
  *   require  tag      --  帮助物品id
  *            
  * @return 
  *            s      --  OK
  */
 public function help($params)
 {
     $uid = $params['u'];
     $fid = $params['fid'];
     $tag = $params['tag'];
     $tu = new TTUser($uid);
     $tu->update_help($tag, $fid);
     $ret['s'] = 'OK';
     $ret['d'] = $tu->get_help();
     return $ret;
 }
示例#2
0
return;
dotest('UserController.get_goods', array('u' => 57));
return;
$now = 1282208631;
$now = time();
dotest('GoodsController.dcheckout', array('u' => 26, 'now' => $now));
return;
dotest('Man.update', array('u' => 8127, 'step' => '1'));
exit;
dotest('Friend.debug_get', array('u' => 4));
return;
dotest('UserController.update_profile');
dotest('Friend.help_car');
return;
$tu = new TTUser(2);
$tu->update_help('60102', 3);
$tu->update_help('60102', 4);
$tu->update_help('60102', 5);
dotest('Friend.get', array('u' => 2, 'f' => 24));
dotest('HelpGet.get', array('u' => 2));
dotest('HelpGet.open', array('u' => 2, 'tag' => '60102'));
dotest('HelpGet.award', array('u' => 2, 'tag' => '60102'));
return;
$now = 1282208631;
$now = time();
//dotest('GoodsController.checkout',array('u'=>61,'now'=>$now));
//return;
dotest('GoodsController.dcheckout', array('u' => 138, 'now' => $now));
return;
dotest('Gift.accept');
return;
示例#3
0
<?php

require_once 'config.php';
$linkid = $_REQUEST['linkid'];
$fid = $_REQUEST['fid'];
if (!$linkid || !$fid) {
    header('Location: ' . RenrenConfig::$canvas_url . '?help=invite');
} else {
    $tw = TT::LinkTT();
    $irec = $tw->getbyuidx('lid', $linkid);
}
if ($irec) {
    $pid = $irec['uid'];
    $oid = $irec['oid'];
    $sess = TTGenid::getbypid($pid);
    $user = new TTUser($sess['id']);
}
if ($user) {
    $user->update_help($oid, $fid);
}
if ($_REQUEST['xn_sig_user']) {
    $fid = $_REQUEST['xn_sig_user'];
}
header('Location: cinema.php?fid=' . $linkid . '&xn_sig_user=' . $fid);