人人分销如何获得小程序图片
<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) ||