application/store/controller/mobile/Balance.php

(开头部分) 29KB

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

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

use app\common\controller\CommonMobile;
use app\common\model\Coupon;
use app\common\model\Balance as BalanceModel;
use app\common\model\BalanceMember;
use app\common\model\Members;
use app\common\model\Store;
use app\common\model\StoreAdmin;
use app\common\model\MembersGroup;
use app\common\model\BalanceConsumLog;
use app\common\model\BalanceSupplementConsumLog;
use app\common\model\BalanceRetreatConsumLog;
use app\common\model\CouponMember;
use app\common\service\Balance as BalanceService;
use app\common\service\Printer as PrintService;

/**
 * [手机端余额]
 *
 * @access public
 * @author www.nfree.cn <[<email address>]>
 */
class Balance extends CommonMobile
{
	/**
	 * [余额卡]
	 *
	 * @access public
	 * @return [view]
	 */
	public function index()
	{
		$admin = session('hysc_mobile_admin_login');
		// 设置默认时区
		date_default_timezone_set('PRC'); 
		//今日开始时间戳和结束时间戳
		$beginToday=mktime(0,0,0,date('m'),date('d'),date('Y'));
		$endToday=mktime(0,0,0,date('m'),date('d')+1,date('Y'))-1;
		//获取本周起始时间戳和结束时间戳
		$beginLastweek = strtotime(date('Y-m-d', strtotime('this week')));
		$endLastweek = strtotime(date('Y-m-d', strtotime('last day next week +1 day')));
		//本月起始时间戳和结束时间戳
		$beginThismonth=mktime(0,0,0,date('m'),1,date('Y'));
		$endThismonth=mktime(23,59,59,date('m'),date('t'),date('Y'));

		$where = [];
		$where[] = ['store_id','=',$admin['store_id']];
后面还有 755 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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