application/common/controller/CommonStore.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* 易想会员管理营销系统
* =========================================================
* 天津市华易动力信息科技有限公司 , 保留所有权利。
* ----------------------------------------------
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
* 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
* =========================================================
* @author : hy_team
* @date : 2019-08-10
*/
namespace app\common\controller;
use think\Controller;
use app\common\service\Login as LoginModel;
use app\common\model\Store as StoreModel;
use app\common\service\Stores as StoreService;
use think\facade\Request;
/**
* 店面端公共控制器
* @package app\common\controller
*/
class CommonStore extends Controller
{
/**
* [公共方法]
*/
public function initialize(){
$this->storeAdminCheckLogin();
$admin = session('hysc_store_admin_login');
$storeList = StoreModel::column('*','id');
$storeName = $storeList[$admin['store_id']]['name'];
$storeThumb = $storeList[$admin['store_id']]['thumb'];
// 导航
$navList = (new StoreService)->getnav();
if($admin['type'] == 2){
if(!empty($admin['authority'])){
if($admin['authority'] != 'all'){
$authorityList = unserialize($admin['authority']);
foreach ($authorityList as $key => $value) {
$authorityList[$key]['code'] = $navList[$key]['code'];
foreach ($authorityList[$key]['data'] as $k => $v) {
$authorityList[$key]['url'][$k] = $navList[$key]['data'][$k]['url'];
}
$authorityList[$key]['url'] = reset($authorityList[$key]['url']);
}
}else{
$authorityList = $admin['authority'];
}
}else{
$authorityList = 'all';
}
}else{
$authorityList = 'all';
}
$this->assign('nav',$navList);
$this->assign('authorityList', $authorityList);
$this->assign('Admin',$admin);
后面还有 42 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。