1
This commit is contained in:
parent
39d7fc638d
commit
730a7e4df6
@ -293,6 +293,7 @@ class ShareController{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$ach_id = $_REQUEST['ach_id'];
|
$ach_id = $_REQUEST['ach_id'];
|
||||||
|
$double = $_REQUEST['double'];
|
||||||
$row = $conn->execQueryOne('SELECT status FROM share_achievement WHERE accountid=:accountid AND ach_id=:ach_id;',
|
$row = $conn->execQueryOne('SELECT status FROM share_achievement WHERE accountid=:accountid AND ach_id=:ach_id;',
|
||||||
array(
|
array(
|
||||||
':accountid' => $account_id,
|
':accountid' => $account_id,
|
||||||
@ -332,6 +333,12 @@ class ShareController{
|
|||||||
$ach_list = $data['invitee_nums'];
|
$ach_list = $data['invitee_nums'];
|
||||||
$peo_num = 0;
|
$peo_num = 0;
|
||||||
$sh = $this->getShare($ach_id);
|
$sh = $this->getShare($ach_id);
|
||||||
|
$num = 0;
|
||||||
|
if ($double != 0) {
|
||||||
|
$num = 2;
|
||||||
|
} else {
|
||||||
|
$num = 1;
|
||||||
|
}
|
||||||
for ($i = 0; $i < count($ach_list); $i++) {
|
for ($i = 0; $i < count($ach_list); $i++) {
|
||||||
$delim = ",";
|
$delim = ",";
|
||||||
$drop_multiply = explode($delim, $string);
|
$drop_multiply = explode($delim, $string);
|
||||||
@ -353,7 +360,7 @@ class ShareController{
|
|||||||
}
|
}
|
||||||
$array = $this->getExplode($sh['rewards']);
|
$array = $this->getExplode($sh['rewards']);
|
||||||
$addreward = new classes\AddReward();
|
$addreward = new classes\AddReward();
|
||||||
$addreward->addReward($array[0][0], $array[0][1], $account_id);
|
$addreward->addReward($array[0][0], $array[0][1] * $num, $account_id);
|
||||||
echo json_encode(array(
|
echo json_encode(array(
|
||||||
'errcode' => 0,
|
'errcode' => 0,
|
||||||
'errmsg' => '',
|
'errmsg' => '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user