source/index/qrcode.ctrl.php

(开头部分) 2KB

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

<?php
/***
 * 二维码
 */	
class qrcodeControl extends skymvc{
	
	public function __construct(){
		parent::__construct();
	}
	
	public function onDefault(){
		$content=get("content","x");
		$this->loadClass("qrcode",false,false);
		QRCODE::png($content,false,QR_ECLEVEL_L,6);
	}
	public function onEwm(){
		echo $content=get("content","h");
		$this->loadClass("qrcode",false,false);
		//QRCODE::png($content,false,QR_ECLEVEL_L,6);
	}
	/***商家二维码**/
	public function onShop(){
		$shopid=get("shopid","i");
		$shop=M("shop")->selectRow(array(
			"where"=>"shopid=".$shopid,
			"fields"=>" shopname,logo,shopid,zhuying"
		));
		if(empty($shop)){
			exit("商家不存在");
		}
		$shop['logo']=images_site($shop['logo']);
		$this->smarty->goAssign(array(
			"shop"=>$shop
		));
		$this->smarty->display("ewm/shop.html");
	}
	//扫码支付 给商家
	public function onShopPay(){
		$shopid=get("shopid",'i');
		$money=get("money",'h');
		if($money==0){
			$this->goAll("请输入金额",1);
		}
		$shop=M("shop")->selectRow("shopid=".$shopid);
		if($shop['status']!=2){
			$this->goAll("该商家已被关闭",1);
		}
		$content=get("content",'h');
		$pay_type=INWEIXIN?"wxpay":"alipay";
		$order_product=date("Y-m-d H:i:s")."线下购买商品支付".$money."元";
		$orderno="re".date("YmdHis").M("login")->userid;
		$backurl="/index.php?m=shop&shopid=".$shopid;
		$orderdata=array(
			"table"=>"plugin",
			"callback"=>'
				M("shop")->addMoney(array(
					"shopid"=>'.$shopid.',
					"income"=>'.$money.',
					"balance"=>'.$money.',
					"content"=>"线下扫码支付收款'.$money.',备注:'.$content.'"
后面还有 42 行代码,购买后查看完整代码

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

AI 解读 AI

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

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