예제 #1
0
    //print_r($tt->getbyuidx('lid',$fid));
    changeUser($pid);
}
function helpOpenShop($fid, $pid, $ot)
{
    $obj = array('uid' => $pid, 'lid' => $fid, 'frd' => $_REQUEST['frd'], 'type' => 1, 'clickTime' => 0, 'count' => 0, 'oid' => $ot, 'date' => date('Ymd'), 'rcv' => array($pid => 1));
    $tt = TT::LinkTT();
    $id = $tt->put($obj);
    //print_r($tt->getbyuidx('lid',$fid));
    changeUser($pid);
}
$type = $_REQUEST['type'];
$fid = $_REQUEST['fid'];
$pid = $_REQUEST['pid'];
$ot = $_REQUEST['ot'];
switch ($type) {
    case 1:
        shareGoldCoin($fid, $pid);
        break;
    case 2:
        shareTask($fid, $pid, $ot);
        break;
    case 3:
        ShareGift($fid, $pid, $ot);
        break;
    case 4:
        helpOpenShop($fid, $pid, $ot);
    default:
        break;
}
TTLog::record(array('m' => 'pub_feed', 'tm' => $_SERVER['REQUEST_TIME'], 'u' => $pid, 'sp2' => $ot, 'sp1' => $type));
예제 #2
0
{
    $key = $_POST['fid'];
    $task = $_POST['task'];
    $obj = array('id' => $key, 'type' => 2, 'task' => $task, 'clickTime' => 0, 'count' => 0, 'rcv' => array());
    $tt = TT::TTWeb();
    $tt->puto($obj);
    changeUser();
}
function shareGoldCoin()
{
    $key = $_POST['fid'];
    $obj = array('id' => $key, 'type' => 1, 'clickTime' => 0, 'count' => 0, 'rcv' => array());
    $tt = TT::TTWeb();
    $tt->puto($obj);
    changeUser();
}
$feedId = $_POST['fid'];
$type = $_POST['type'];
switch ($type) {
    case 1:
        shareGoldCoin();
        break;
    case 2:
        shareTask();
        break;
    case 3:
        ShareGift();
        break;
    default:
        break;
}