45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: xuxb
|
|
* Date: 2019/11/20
|
|
* Time: 15:07
|
|
*/
|
|
class App_model extends HD_Model
|
|
{
|
|
private $table_name = 'lc_app';
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct($this->table_name, 'default');
|
|
}
|
|
|
|
/**
|
|
* Notes:app配置
|
|
* Created on: 2019/12/27 14:52
|
|
* Created by: dengbw
|
|
* @param $app_id
|
|
* @return array
|
|
*/
|
|
public function appConfig($app_id = null)
|
|
{
|
|
$map_config = array(
|
|
2 => array(
|
|
'app_key' => 'licheb',
|
|
'table' => 'hd_app_licheb_users',
|
|
'model' => 'app/licheb/app_licheb_users_model',
|
|
'wx' => array(
|
|
'appid' => 'wx4733380c110313ec',
|
|
'secret' => 'cfa1bb15b671f919e959100c0b4070a2',
|
|
),
|
|
),
|
|
);
|
|
if (is_null($app_id)) {
|
|
return $map_config;
|
|
}
|
|
return $map_config[$app_id];
|
|
}
|
|
}
|