58 lines
1.7 KiB
PHP
58 lines
1.7 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(
|
|
1 => array(
|
|
'app_key' => 'liche',
|
|
'table' => 'hd_app_liche_users',
|
|
'model' => 'app/liche/app_liche_users_model',
|
|
'wx' => array(
|
|
'appid' => 'wx98e64c11aac45966',
|
|
'secret' => 'f8eec7be1c87a1c8e40213e144821ec3',
|
|
'pages_groupcode_detail' => 'pages/groupCode/index',
|
|
'pages_special2' => 'pages/special2/index',
|
|
'pages_storeInfo' => array('id' => 'biz_id', 'pages' => 'pages/storeInfo/index'),
|
|
'pages_lantushijia' => 'pages/topicActivity/lantushijia/index',
|
|
),
|
|
),
|
|
2 => array(
|
|
'app_key' => 'licheb',
|
|
'table' => 'hd_app_licheb_users',
|
|
'model' => 'app/licheb/app_licheb_users_model',
|
|
'wx' => array(
|
|
'appid' => 'wx71095d4049de3ed1',
|
|
'secret' => 'a80eb6ed68d7bae2d804fe507a4522f7',
|
|
),
|
|
),
|
|
);
|
|
if (is_null($app_id)) {
|
|
return $map_config;
|
|
}
|
|
return $map_config[$app_id];
|
|
}
|
|
}
|