123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <?php
-
-
- namespace app\api\model\v1;
-
- use think\Db;
- use think\Model;
- use think\Request;
- use think\template\taglib\api\Base as BaseTag;
-
-
- class Base extends Model
- {
-
-
- public static $request = null;
-
-
-
- public static $appId = null;
-
-
-
- public static $lang = null;
-
-
-
- public static $weapp_code = 'cn';
-
-
-
- public static $provider = 'weixin';
-
-
-
- public $globalConfig = [];
- public $usersConfig = [];
-
-
- protected function initialize()
- {
-
- parent::initialize();
- $this->baseTag = new BaseTag;
- self::$lang = BaseTag::$main_lang;
- self::$request = BaseTag::$request;
- self::$appId = input('param.appId/s');
- self::$provider = input('param.provider/s', 'weixin');
- self::$weapp_code = 'OpenMinicode';
-
- $this->globalConfig = BaseTag::$globalConfig;
- $this->usersConfig = BaseTag::$usersConfig;
- }
-
-
-
- public function html_httpimgurl($content = '', $timeVersion = false)
- {
- return $this->baseTag->html_httpimgurl($content, $timeVersion);
- }
-
-
-
- public function time_format($t = 0)
- {
- return $this->baseTag->time_format($t);
- }
-
-
-
- public function get_default_pic($pic_url = '', $domain = true, $tcp = 'http')
- {
- return $this->baseTag->get_default_pic($pic_url, $domain, $tcp);
- }
-
-
-
- public function get_head_pic($head_pic = '', $is_admin = false, $sex = '保密')
- {
- return $this->baseTag->get_head_pic($head_pic, $is_admin, $sex);
- }
-
-
-
- public function set_arcseotitle($title = '', $seo_title = '', $typename = '')
- {
- return $this->baseTag->set_arcseotitle($title, $seo_title, $typename);
- }
- }
|