diff --git a/app/Controller/NotifyController.php b/app/Controller/NotifyController.php index a94b07f..1d2c1be 100644 --- a/app/Controller/NotifyController.php +++ b/app/Controller/NotifyController.php @@ -15,7 +15,7 @@ use App\Model\SystemConfig; use App\Model\Users; use App\Service\DeviceServiceInterface; use App\Service\FeiePrintServiceInterface; -use App\Service\MiniprogramService; +use App\Service\MiniprogramServiceInterface; use App\Service\MqttServiceInterface; use App\Service\UserServiceInterface; use EasyWeChat\Factory; @@ -43,7 +43,7 @@ class NotifyController extends BaseController /** * @Inject - * @var MiniprogramService + * @var MiniprogramServiceInterface */ protected $miniprogramService; diff --git a/config/autoload/dependencies.php b/config/autoload/dependencies.php index 1557ca3..7c683c7 100644 --- a/config/autoload/dependencies.php +++ b/config/autoload/dependencies.php @@ -21,4 +21,6 @@ return [ \App\Service\CouponServiceInterface::class => \App\Service\CouponService::class, \App\Service\MqttServiceInterface::class => \App\Service\MqttSpeakerService::class, \App\Service\FeiePrintServiceInterface::class => \App\Service\FeiePrintService::class, + \App\Service\MiniprogramServiceInterface::class => \App\Service\MiniprogramService::class, + \App\Service\UserServiceInterface::class => \App\Service\UserService::class, ];