wip
This commit is contained in:
@@ -104,6 +104,12 @@ class CardTransactionsController extends Controller
|
|||||||
|
|
||||||
$response = vp_fetch_ClientInfoAll($order, $start_date, $end_date);
|
$response = vp_fetch_ClientInfoAll($order, $start_date, $end_date);
|
||||||
|
|
||||||
|
info([
|
||||||
|
'data' => $response,
|
||||||
|
'type' => gettype($response),
|
||||||
|
'tr' => gettype($response->transactions),
|
||||||
|
]);
|
||||||
|
|
||||||
if ($response->errCode != 0) {
|
if ($response->errCode != 0) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status' => false,
|
'status' => false,
|
||||||
|
|||||||
@@ -178,12 +178,6 @@ class DownloadCardTransaction extends Action
|
|||||||
*/
|
*/
|
||||||
public function getExtraVariables($data): object
|
public function getExtraVariables($data): object
|
||||||
{
|
{
|
||||||
info([
|
|
||||||
'data' => $data,
|
|
||||||
'type' => gettype($data),
|
|
||||||
'tr' => gettype($data->transactions),
|
|
||||||
]);
|
|
||||||
|
|
||||||
if (count($data->transactions) < 1) {
|
if (count($data->transactions) < 1) {
|
||||||
return emptyClass(basdakyGalyndy: 0, ahyrkyGalyndy: 0, girdeji: 0, cykdajy: 0);
|
return emptyClass(basdakyGalyndy: 0, ahyrkyGalyndy: 0, girdeji: 0, cykdajy: 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user