From ded57f1ae7ebf2c141d8f3aabf5e378ff06df615 Mon Sep 17 00:00:00 2001 From: liangyuyan <1103300295@qq.com> Date: Wed, 12 Aug 2020 20:04:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E8=BF=94=E5=88=B8?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8--=E5=A6=82=E6=9E=9C=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E4=BC=98=E6=83=A0=E5=88=B8=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=99=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Repositories/CouponTie.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Admin/Repositories/CouponTie.php b/app/Admin/Repositories/CouponTie.php index 32fef26..fb4d59e 100644 --- a/app/Admin/Repositories/CouponTie.php +++ b/app/Admin/Repositories/CouponTie.php @@ -19,7 +19,13 @@ class CouponTie extends Repository $ssdb = new SsdbClient(); $coupon = $ssdb->client()->hgetall('coupon_rebate_activity'); - + if($coupon === false){ + $coupon = [ + 'activity'=> 0, + 'forward'=> '', + 'repay' => '' + ]; + } return $model->makePaginator( 1, [