Bladeren bron

路径和user问题

LD 5 jaren geleden
bovenliggende
commit
14c56fd5a4
2 gewijzigde bestanden met toevoegingen van 13 en 12 verwijderingen
  1. 1 1
      app/Http/Controllers/WeighController.php
  2. 12 11
      app/User.php

+ 1 - 1
app/Http/Controllers/WeighController.php

@@ -70,7 +70,7 @@ class WeighController extends Controller
                 $package=OrderPackage::query()->where('logistic_number',$logistic_number)->first();
             }
         }
-        $accomplishToWMS=new Api\thirdPart\flux\PackageController();
+        $accomplishToWMS=new api\thirdPart\flux\PackageController();
 
 
         if($batch_number){

+ 12 - 11
app/User.php

@@ -11,7 +11,8 @@ use Illuminate\Support\Facades\Gate;
 use App\Traits\ModelTimeFormat;
 use Tymon\JWTAuth\Contracts\JWTSubject;
 
-class User extends Authenticatable implements JWTSubject
+//class User extends Authenticatable implements JWTSubject
+class User extends Authenticatable
 {
     use ModelLogChanging;
     use ModelTimeFormat;
@@ -133,14 +134,14 @@ class User extends Authenticatable implements JWTSubject
         return $workgroupIds;
     }
 
-    //jwt
-    public function getJWTIdentifier()
-    {
-        return $this->getKey();
-    }
-
-    public function getJWTCustomClaims()
-    {
-        return [];
-    }
+//    //jwt
+//    public function getJWTIdentifier()
+//    {
+//        return $this->getKey();
+//    }
+//
+//    public function getJWTCustomClaims()
+//    {
+//        return [];
+//    }
 }