人人分销如何获得小程序图片
<div class="blockcode"><blockquote>获取小程序商品二维码
必须post请求
<script>
$.post("/app/index.php?i=1&c=entry&m=ewei_shopv2&do=mobile&r=getcode&id={$_GPC['id']}",{},function(result){
// console.log(1111,result)
$("#eweima").attr('src',"/app/index.php?i=1&c=entry&m=ewei_shopv2&do=mobile&r=getcode&id={$_GPC['id']}");
});
</script>
$id = intval($_GPC['id']);
$ret
= $this->getCodeUnlimit(array('scene' => 'id=' . $id, 'page'
=> empty($id) ? 'pages/goods/index/index' :
'pages/goods/detail/index'));
header('content-type: image/png');
exit($ret);
public function getCodeUnlimit($params = array())
{
if (empty($params) || !(is_array($params)))
{
return error(-1, '参数错误(params)');
}
if (empty($params['scene']) || empty($params['page']))
{

本文介绍了如何在人人分销系统中获取小程序的商品图片,教程来源于www.phpkaifa.cc。
最低0.47元/天 解锁文章
1137

被折叠的 条评论
为什么被折叠?



