Commit 6d165782 authored by chenchuanwen's avatar chenchuanwen

p

parent 0621e68e
...@@ -13,7 +13,7 @@ class PathConst { ...@@ -13,7 +13,7 @@ class PathConst {
const params="?"; const params="?";
const wxTakeAccessUrl="https://api.weixin.qq.com/cgi-bin/token?grant_type={0}&appid={1}&secret={2}"; const wxTakeAccessUrl="https://api.weixin.qq.com/cgi-bin/token?grant_type={0}&appid={1}&secret={2}";
const getWxQrCode="https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={0}"; const getWxQrCode="https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={0}";
const wxStoreParams="id={0}&isScan=1"; const wxStoreParams="id={0}";
const wxGoodsParams="id={0}"; const wxGoodsParams="id={0}";
//1:店铺小程序二维码生成路径,2:商品小程序二维码路径 //1:店铺小程序二维码生成路径,2:商品小程序二维码路径
const wxStorePath="pages/shops/home/index"; const wxStorePath="pages/shops/home/index";
......
...@@ -157,7 +157,7 @@ class ShareServiceModel extends \Business\AbstractModel ...@@ -157,7 +157,7 @@ class ShareServiceModel extends \Business\AbstractModel
if(\Our\ApiConst::isWxPublish){ if(\Our\ApiConst::isWxPublish){
//$scene= \Our\Common::format(\Our\PathConst::wxGoodsParams,$data['id']); //$scene= \Our\Common::format(\Our\PathConst::wxGoodsParams,$data['id']);
$scene= \Our\Common::format(\Our\PathConst::wxGoodsParams,$data['goodsCommonid']); $scene= \Our\Common::format(\Our\PathConst::wxGoodsParams,$data['goodsCommonid']);
$page=\Our\PathConst::wxStorePath; $page=\Our\PathConst::wxGoodsPath;
$res=$this->getQrcode($page,$scene); $res=$this->getQrcode($page,$scene);
if(Common::isJson($res)){ if(Common::isJson($res)){
$res=json_decode($res,true); $res=json_decode($res,true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment