|
|
@@ -9,11 +9,12 @@ class OwnerObserver
|
|
|
/**
|
|
|
* 监听插入事件
|
|
|
*
|
|
|
- * @param \App\Owner $owner
|
|
|
+ * @param Owner $owner
|
|
|
* @return void
|
|
|
*/
|
|
|
public function created(Owner $owner)
|
|
|
{
|
|
|
- app("OwnerService")->syncPush($owner);
|
|
|
+ if(env('APP_ENV')=='production')
|
|
|
+ app("OwnerService")->syncPush($owner);
|
|
|
}
|
|
|
}
|