Ver Fonte

wesmiler

wesmiler há 2 anos atrás
pai
commit
f5a5177345
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      app/Http/Controllers/Api/v1/GoodsController.php

+ 3 - 0
app/Http/Controllers/Api/v1/GoodsController.php

@@ -62,6 +62,9 @@ class GoodsController extends webApp
     public function freight()
     {
         $addressId = request()->post('address_id', 0);
+        if($addressId<=0){
+            return showJson(1009, false);
+        }
         $info = GoodsService::make()->getFreight($this->userId, $addressId);
         return showJson(1010, true, $info);
     }