application/admin/controller/store/Store.php

(开头部分) 53KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
/**
 * 易想会员管理营销系统
 * =========================================================
 * 天津市华易动力信息科技有限公司 , 保留所有权利。
 * ----------------------------------------------
 * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
 * 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
 * =========================================================
 * @author : hy_team
 * @date : 2019-08-10
 */
namespace app\admin\controller\store;

use app\common\controller\Common;
use app\common\model\Store as StoreApp;
use app\common\model\StoreCategory;
use app\common\model\Printer as PrinterModel;
use app\common\model\StoreAdmin;
use app\common\model\Order;
use app\common\service\Printer as PrinterService;
use app\common\model\ArticleCategory;
use app\common\model\Article;
use app\common\model\ProductCategory;
use app\common\model\Product;
use app\common\model\Balance;
use app\common\model\Oncecard;
use app\common\model\OncecardMember;
use app\common\model\OncecardConsumLog;
use app\common\model\OncecardSupplementConsumLog;
use app\common\model\OncecardRetreatConsumLog;
use app\common\model\Members;
use app\common\model\BalanceMember;
use app\common\model\BalanceConsumLog;
use app\common\model\BalanceSupplementConsumLog;
use app\common\model\BalanceRetreatConsumLog;
use app\common\service\Auth as AuthService;

class Store extends Common
{
    //门店列表
	public function index()
	{	
		$where = [];

		//云获取限制门店个数
		$limit_num = (new AuthService)->get_store_limit();
		$limit_num = is_numeric($limit_num)?$limit_num:1;
		$this->assign('limit_num',$limit_num);
        //本地店铺数量
		$local_num = StoreApp::count();
		$this->assign('local_num',$local_num);
		//判断是否可以添加
        $checkCloudStore = $local_num<=$limit_num?true:false;
        $this->assign('checkCloudStore',$checkCloudStore);

		$list = StoreApp::where($where)->paginate(20,false,$this->common_param());

		$page = $list->render();

后面还有 1556 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。