application/app/controller/Myoncecard.php

(开头部分) 27KB

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

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

use app\common\controller\CommonApp;
use app\common\model\Oncecard as OncecardModel;
use app\common\model\OncecardMember;
use app\common\model\Store as StoreModel;
use app\common\model\OncecardConsumLog;
use app\common\model\OncecardRechargeLog;
use app\common\model\OncecardRechargeRules;
use app\common\model\OncecardRechargePayLog;
use app\common\model\Members;
use app\common\model\Coupon as CouponModel;
use app\common\model\CouponMember as CouponMemberModel;
use app\common\model\CardField;
use app\common\service\Oncecard as OncecardService;
use app\common\service\Coupon as CouponService;
use app\common\service\Rule as RuleService;
use app\common\service\Recharge as RechargeService;


/**
 * 次卡信息
 */
class Myoncecard extends CommonApp
{
	// 前置操作判断会员
	protected $beforeActionList = [
        'checkUserBind'
    ];


	public function info()
	{
		$user = $this->userInfo;
		$id = $this->request->param('id');
		if(!is_numeric($id) || $id<=0 || empty($id)){
			$this->error("上传参数有误");
		}
	    //检查更新次卡
		$res = (new OncecardService)->check_mem_oncecard($user['id'],' and id='.$id);

		$item = OncecardMember::where('id='.$id.' and (uid='.$user['id'].' or find_in_set('.$user['id'].',share_uids))')->find();
		if(!$item)$this->error("找不到该用户下的会员卡");

		$oncecardRow = OncecardModel::where('id',$item['oncecard_id'])->find();

		$item['oncecard_name'] = $oncecardRow['name'];
		$item['oncecard_img'] = $oncecardRow['img_url'];
后面还有 743 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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