|
|
@ -19,7 +19,13 @@ class CouponTie extends Repository |
|
|
|
|
|
|
|
|
$ssdb = new SsdbClient(); |
|
|
$ssdb = new SsdbClient(); |
|
|
$coupon = $ssdb->client()->hgetall('coupon_rebate_activity'); |
|
|
$coupon = $ssdb->client()->hgetall('coupon_rebate_activity'); |
|
|
|
|
|
|
|
|
|
|
|
if($coupon === false){ |
|
|
|
|
|
$coupon = [ |
|
|
|
|
|
'activity'=> 0, |
|
|
|
|
|
'forward'=> '', |
|
|
|
|
|
'repay' => '' |
|
|
|
|
|
]; |
|
|
|
|
|
} |
|
|
return $model->makePaginator( |
|
|
return $model->makePaginator( |
|
|
1, |
|
|
1, |
|
|
[ |
|
|
[ |
|
|
|