wip
This commit is contained in:
1 parent
9cecd6c465
commit
051ec52547
1 file changed
+4
-1
@@ -76,12 +76,15 @@ public function handle(ActionFields $fields, Collection $models)
|
||||
|
||||
$success = false;
|
||||
if (is_object($systemResponse)) {
|
||||
// Usually works here...
|
||||
$success = $systemResponse->errCode == 0;
|
||||
} else {
|
||||
$success = $systemResponse['errCode'] == 0;
|
||||
}
|
||||
|
||||
info([
|
||||
'ok' => $systemResponse
|
||||
]);
|
||||
|
||||
$orderItem->update([
|
||||
'synced_with_system' => $success,
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user