application/app/controller/Giftticket.php

(开头部分) 2KB

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

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

use app\common\controller\CommonApp;
use app\common\model\GiftTicketMember as GiftTicketMembersModel;
use app\common\model\GiftTicket as GiftTicketModel;
use app\common\service\GiftTicket as GiftTicketService;


/**
 * 礼品券
 */

class Giftticket extends CommonApp
{

	// 前置操作判断会员是否绑定手机号
	protected $beforeActionList = [
        "checkUserBind"
    ];


	/**
	 * [我的礼品券列表]
	 */
	public function index(){

		$userInfo = $this->userInfo;


        //检验礼品券状态
        (new GiftTicketService)-> check_mem_gift_ticket($userInfo["id"]);

		$status = input("param.status");
		$request = $this->request->param();

		$where = [
			["uid","=",$userInfo["id"]]
		];

		if(!empty($status)) {
			$where[] = ["status","=",$status];
		}else{
			unset($request["status"]);
		}
		
		$list = GiftTicketMembersModel::where($where)->order(["create_time" => "desc","id" => "desc"])->paginate($pagesize,false,["query" => $this->common_param()]);

		$giftTicketAll = GiftTicketModel::column("*","id");
后面还有 27 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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