作者 chencheng

jz-14

@@ -33,7 +33,8 @@ class Coupon extends Model @@ -33,7 +33,8 @@ class Coupon extends Model
33 33
34 public function getTypeList() 34 public function getTypeList()
35 { 35 {
36 - return ['0' => __('Type 0'), '1' => __('Type 1'), '2' => __('Type 2'), '3' => __('Type 3')]; 36 + //return ['0' => __('Type 0'), '1' => __('Type 1'), '2' => __('Type 2'), '3' => __('Type 3')];
  37 + return [ '1' => __('Type 1'), '2' => __('Type 2')];
37 } 38 }
38 39
39 40
@@ -195,7 +195,7 @@ class Client extends Base @@ -195,7 +195,7 @@ class Client extends Base
195 if($order){ 195 if($order){
196 $order['image'] = !empty($order['image'])?request()->domain().$order['image']:''; 196 $order['image'] = !empty($order['image'])?request()->domain().$order['image']:'';
197 $receivewhere['a.verification_order_id']=$order_id; 197 $receivewhere['a.verification_order_id']=$order_id;
198 - $receivewhere['a.coupon_type'] = '0';//只查询代金 198 + $receivewhere['a.coupon_type'] = '2';//只查询消费
199 $receivewhere['a.user_id'] = $this->auth->id; 199 $receivewhere['a.user_id'] = $this->auth->id;
200 $receive=Db::name('verification_receive') 200 $receive=Db::name('verification_receive')
201 ->alias('a') 201 ->alias('a')