wip
This commit is contained in:
@@ -69,11 +69,10 @@ class SyncWithSystem extends Action
|
||||
|
||||
$success = false;
|
||||
if (is_object($systemResponse)) {
|
||||
// Usually works here...
|
||||
$success = $systemResponse->errCode == 0;
|
||||
info('aaa');
|
||||
} else {
|
||||
$success = $systemResponse['errCode'] == 0;
|
||||
info('bbb');
|
||||
}
|
||||
|
||||
$orderItem->update([
|
||||
@@ -81,8 +80,8 @@ class SyncWithSystem extends Action
|
||||
]);
|
||||
|
||||
return Action::modal('modal-response', [
|
||||
'title' => 'SYSTEM API',
|
||||
'html' => $success ? "Success" : "Fail",
|
||||
'title' => $success ? "Success" : "Fail",
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user