@admin 代金券本地测试PC版能用非通用券,WAP确定是不能用非通用券,
扯蛋的是,网站上现在连PC端连通用券也不显示了,将本地测试没问题的默认程序和模版传上去,
在提交订单时也不显示能用的通用券和非通用券
一个非通用券都折腾几个月都没解决,这了太扯了
{volist name="$money_array" id="money" key="shop_uid"} {php} $array=fun('Coupon@get_list',1,$money,3); echo $array; {/php} <!--非通用券处理开始--> {php} foreach($listdb[$shop_uid] AS $rs){ if($rs['coupon_tag']&&$_array=fun('Coupon@get_list',$userdb['uid'],fun('shop@get_price',$rs,$rs['_car_']['type1']-1),$shop_uid,$rs['coupon_tag']))$array=$array?array_merge($array,$_array):$_array; } {/php} <!--非通用券处理结束--> {if $array} <dl> <dd> <div style="color:red;margin:10px;">商家:{:get_user_name($shop_uid)} 派发的可用代金券如下,请选择</div> {volist name="$array" id="rs"} <input type="radio" name="cid[{$rs.shop_uid}]" value="{$rs.id}">面额:{$rs.quan_money} 元 , 累计满{$rs.min_money}元可用【{$rs.coupon_tag?'非通用券':'通用券'}】<br> {/volist} </dd> </dl> {/if} {/volist}
这段代码在本地测试有效,能显示可用代金券,在网站上不显示可用代金券