浏览代码

打招呼不送礼物了

lizhen_gitee 11 月之前
父节点
当前提交
780bbc74fb
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 1 0
      application/api/controller/Gift.php
  2. 4 2
      application/api/controller/Index.php

+ 1 - 0
application/api/controller/Gift.php

@@ -243,6 +243,7 @@ class Gift extends Api
 
     //打招呼送礼物
     public function givechatgift() {
+        exit; //作废
         // 接口防并发
         if (!$this->apiLimit(1, 1000)) {
             $this->error(__('Operation frequently'));

+ 4 - 2
application/api/controller/Index.php

@@ -846,13 +846,15 @@ class Index extends Api
         }
         Db::commit();
 
-        $gift_greet = Db::name('gift_greet')->find();
+        //不需要送礼物了
+        /*$gift_greet = Db::name('gift_greet')->find();
         if ($gift_greet) {
             $gift_greet['special'] = one_domain_image($gift_greet['special']);
             $gift_greet['image'] = one_domain_image($gift_greet['image']);
         } else {
             $gift_greet = (object)[];
-        }
+        }*/
+        $gift_greet = (object)[];
 
         $this->success('操作成功', $gift_greet);
     }