Browse Source

使用票返回错误更改为成功

Panda 2 months ago
parent
commit
f8de537321
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Vip.php

+ 1 - 1
application/api/controller/Vip.php

@@ -73,6 +73,6 @@ class Vip extends Api
         if (!Db::name('vip_coupon_user')->where(['id' => $params['coupon_id'], 'status' => 1])->update(['status' => 2, 'use_time' => time()])) {
             $this->error('操作失败');
         }
-        $this->error('使用成功');
+        $this->success('使用成功');
     }
 }