123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Bear
- * Date: 2018/11/29
- * Time: 上午10:23
- */
- namespace app\main\service;
- use app\common\library\User;
- use app\common\model\Entryhost;
- use app\common\model\GuideWx;
- use app\common\model\Openid;
- use app\common\model\Ophost;
- use app\common\model\Sign;
- use app\common\model\Subscription;
- use app\common\model\SubscriptionFans;
- use app\common\model\WechatAutoreply;
- use app\common\model\WechatResponse;
- use app\common\model\Wxpay;
- use app\main\constants\OpenPlatformConstants;
- use think\Cookie;
- use think\Model;
- use think\Request;
- /**
- * 处理服务号,订阅号内容
- * Class OfficialAccountsService
- * @package app\main\service
- */
- class OfficialAccountsService extends BaseService
- {
- /**
- * @var OfficialAccountsService
- */
- protected static $self = NULL;
- /**
- * @return OfficialAccountsService
- */
- public static function instance()
- {
- if (self::$self == NULL) {
- self::$self = new self();
- }
- return self::$self;
- }
- /**
- * @return Subscription
- */
- public function getSubscriptionModel()
- {
- return model('Subscription');
- }
- /**
- * @return SubscriptionFans
- */
- public function getSubscriptionFansModel()
- {
- return model('SubscriptionFans');
- }
- /**
- * @return Ophost
- */
- public function getOphostModel()
- {
- return model('Ophost');
- }
- /**
- * @return Openid
- */
- public function getOpenidModel()
- {
- return model('openid');
- }
- /**
- * @return WechatAutoreply
- */
- public function getWechatAutoreplyModel()
- {
- return model('WechatAutoreply');
- }
- /**
- * @return WechatResponse
- */
- public function getWechatResponseModel()
- {
- return model('WechatResponse');
- }
- /**
- * @return Sign
- */
- public function getSignModel()
- {
- return model('Sign');
- }
- /**
- * @return Wxpay
- */
- public function getWxpayModel()
- {
- return model('Wxpay');
- }
- /**
- * @return GuideWx
- */
- public function getGuideWxModel()
- {
- return model('GuideWx');
- }
- /**
- * @return Entryhost
- */
- public function getEntryHostModel()
- {
- return model('Entryhost');
- }
- public function getAdminWxmenuModel()
- {
- return model('AdminWxmenu');
- }
- }
|