|
|
@@ -14,16 +14,16 @@ class OwnerObserver
|
|
|
*/
|
|
|
public function created(Owner $owner)
|
|
|
{
|
|
|
-// if(env('APP_ENV')=='production')
|
|
|
-// app("OwnerService")->syncPush($owner);
|
|
|
-// app("OwnerService")->createAuthority($owner);
|
|
|
+ if(env('APP_ENV')=='production')
|
|
|
+ app("OwnerService")->syncPush($owner);
|
|
|
+ app("OwnerService")->createAuthority($owner);
|
|
|
}
|
|
|
|
|
|
public function updated(Owner $owner)
|
|
|
{
|
|
|
-// if(env('APP_ENV')=='production'){
|
|
|
-// app("OwnerService")->syncUpdate($owner);
|
|
|
-// }
|
|
|
+ if(env('APP_ENV')=='production'){
|
|
|
+ app("OwnerService")->syncUpdate($owner);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|