1
This commit is contained in:
parent
b67cf87cfc
commit
8273a15e87
@ -497,13 +497,13 @@ class ChipController extends BaseAuthedController
|
||||
}
|
||||
$chip_param = $data;
|
||||
}
|
||||
$cumulative_cost = 0;
|
||||
$cumulative_cost = [];
|
||||
$token_id_arr = [];
|
||||
foreach ($chip_param as $value){
|
||||
$cumulative_cost += $value['cost'];
|
||||
array_push($cumulative_cost,$value['cost']);
|
||||
array_push($token_id_arr,$value['token_id']);
|
||||
}
|
||||
$this->_rspData(['data'=>['cost'=>$cumulative_cost,'token_ids'=>implode(' ',$token_id_arr)]]);
|
||||
$this->_rspData(['data'=>['cost'=>$cumulative_cost,'token_ids'=>$token_id_arr]]);
|
||||
}
|
||||
|
||||
public function lockChip(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user