sunhao 5 years ago
parent
commit
c0ae47d751
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Console/Commands/SyncMjWarehouse.php

+ 1 - 1
app/Console/Commands/SyncMjWarehouse.php

@@ -76,7 +76,7 @@ class SyncMjWarehouse extends Command {
76 76
 //                    $up['outPrice'] = 0;
77 77
                 }
78 78
                 if($cost->outPrice == 0){
79
-                    if($up['realPrice'] != 0){
79
+                    if(isset($up['realPrice']) && $up['realPrice'] != 0){
80 80
                         $up['outPrice'] = ceil($up['realPrice']*1.15);
81 81
                     }
82 82
                 }