作者 chencheng

jz-14

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