Merge branch 'master' of https://gitlab.antadis.net/mobile-antadis/api-bbb
This commit is contained in:
commit
63ec80f713
@ -59,6 +59,13 @@ class PayboxController extends ApiBaseController {
|
|||||||
public function getQuestion(Request $request) {
|
public function getQuestion(Request $request) {
|
||||||
$numquestion = (int)ApiConfiguration::get('NUM_QUESTION_PAYBOX') + 1;
|
$numquestion = (int)ApiConfiguration::get('NUM_QUESTION_PAYBOX') + 1;
|
||||||
(int)ApiConfiguration::updateValue('NUM_QUESTION_PAYBOX', $numquestion);
|
(int)ApiConfiguration::updateValue('NUM_QUESTION_PAYBOX', $numquestion);
|
||||||
|
|
||||||
|
$fp = fopen(__DIR__. '/../../../../log_payment_question'.date('Y-m-d').'.txt', 'a+');
|
||||||
|
$log = var_export($request->user()->email, true) . " " .
|
||||||
|
var_export($numquestion, true) . " " .
|
||||||
|
var_export($_SERVER['REMOTE_ADDR'], true) . "\n\n";
|
||||||
|
fwrite($fp, $log);
|
||||||
|
fclose($fp);
|
||||||
return array(
|
return array(
|
||||||
'NUMQUESTION' => $numquestion,
|
'NUMQUESTION' => $numquestion,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user