怎么算出第一个 rule_1 有两个
第一个有2个,第二个 第三个 可能不同
存的时候 ,是双重循环存的,其中有三维i 数组
存的时候 ,是双重循环存的,其中有三维i 数组
foreach($shop_list as $key=>$val){
// var_dump($val['shop_id']);
// die();
if($m==0){
$info = M ( 'goodsshop' )->where ("id = ".$val['shop_id'])->find();
}else{
$info = M ( 'goodsshop' )->where ("id = ".$val['shopid'])->find();
if($info){
if($info['promotion_status']=='1'){ //1 存在促销且促销激活
$promotion_result = M ( 'goodspromotion' )->where ("promotion_goods= ".$val['shopid']." and state = 1 and rule_style= 1")->select();
//查看促销方式
//商品促销