application/common/service/Oncecard.php

(开头部分) 50KB

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

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

use app\common\service\BaseService;
use app\common\model\Oncecard as OncecardModel;
use app\common\model\OncecardMember;
use app\common\model\OncecardConsumLog;
use app\common\model\Store;
use app\common\model\StoreAdmin;
use app\common\model\MembersBlackList;
use app\common\model\OncecardRetreatConsumLog;
use app\common\model\OncecardSupplementConsumLog;
use app\common\model\ExcelOncecardLog;
use app\common\model\OncecardShareLog;
use app\common\model\Members;
use app\common\service\WeixinTemplate as Wxtemplate;
use app\common\service\Coupon as CouponService;

/**
 * 次卡
 */
class Oncecard extends BaseService
{
	

	/**
	 * [检验次卡是否过期]
	 * @param  number $id [次卡的id]
	 * @param  string $whereVal [where限定条件]
	 * @return [number] [返回过期的条数(未传入id)  返回 成功:空 失败:错误信息(传入id)]
	 */
	public function check_oncecard($oncecardId="",$whereVal=""){

		$where = [];
		if(!empty($oncecardId)){ 
			$where[] = ['id','=',$oncecardId];
		}

		if (!empty($whereVal)) {
	    	$where[] = $whereVal;
	    }

        if (empty($oncecardId)) {
            //次卡
            $total = 0;
            $oncecardList = OncecardModel::where($where)->all();

            if($oncecardList){
                foreach ($oncecardList as $key => $value) {
后面还有 1150 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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