作者 何书鹏

bug修改

... ... @@ -274,7 +274,7 @@ class PackageOrder extends Base
->alias('pc')
->join('shopro_coupons sc','pc.coupons_id = sc.id')
->where('pc.package_id',$order['package_id'])
->field('pc.coupons_id,pc.give_num,pc.exipre_days')
->field('pc.coupons_id,pc.give_num,pc.expire_days')
->select();
$user_coupons_data = [];
foreach ($package_coupons as $v) {
... ... @@ -282,7 +282,7 @@ class PackageOrder extends Base
$user_coupons_data[] = [
'user_id' => $order['user_id'],
'coupons_id' => $v['coupons_id'],
'package_coupons_time' => strtotime('+'.$v['exipre_days'].'days')
'package_coupons_time' => strtotime('+'.$v['expire_days'].'days')
];
}
}
... ...