Explorar o código

好评有礼,任务task

lizhen_gitee hai 1 ano
pai
achega
a48d48117f

+ 6 - 7
application/admin/controller/Appcomment.php

@@ -94,13 +94,12 @@ class Appcomment extends Backend
 
             if($status == 1){
 
-                $gift_gold = config('site.comment_for_gold_price') ?: 0;
-                if($gift_gold > 0){
-                    $wallet_rs = model('wallet')->lockChangeAccountRemain($info['user_id'],'gold',$gift_gold,70,'好评有礼');
-                    if($wallet_rs['status'] === false){
-                        Db::rollback();
-                        $this->error($wallet_rs['msg']);
-                    }
+                //task任务
+                //好评有礼
+                $task_rs = \app\common\model\TaskLog::tofinish($this->auth->id,17);
+                if($task_rs === false){
+                    Db::rollback();
+                    $this->error('完成任务失败');
                 }
 
                 //系统消息

+ 3 - 3
application/api/controller/User.php

@@ -395,13 +395,13 @@ class User extends Api
             $this->error('修改资料失败');
         }
 
-        //tag任务赠送金币
-        //上传头像加5金币
+        //task任务
+        //上传本人头像
         if(isset($data['avatar'])&& $data['avatar'] != config('site.domain_cdnurl').'/avatar.png'){
             $task_rs = \app\common\model\TaskLog::tofinish($this->auth->id,1);
             if($task_rs === false){
                 Db::rollback();
-                $this->error('完成任务赠送奖励失败');
+                $this->error('完成任务失败');
             }
         }
 

+ 3 - 3
application/api/controller/Userauth.php

@@ -97,12 +97,12 @@ class Userauth extends Api
             $rs = Db::name('user_idconfirm')->insertGetId($data);
         }
 
-        //tag任务赠送金币
-        //完成本人基本资料 +15金币《所有资料完善,包括真人认证和实名认证
+        //task任务
+        //实名认证
         $task_rs = \app\common\model\TaskLog::tofinish($this->auth->id,4);
         if($task_rs === false){
             Db::rollback();
-            $this->error('完成任务赠送奖励失败');
+            $this->error('完成任务失败');
         }
 
         //系统消息

+ 0 - 2
application/extra/site.php

@@ -47,7 +47,6 @@ return array (
   'user_sign_gift_vipdays' => '1',
   'gift_plat_scale' => '60',
   'comment_for_gold_switch' => '1',
-  'comment_for_gold_price' => '10',
   'introsite_activeinfo' => '1、邀请新用户加入TKEN,即可获得奖励。
 2、奖励金可等额兑换“”吉傲“T币或会员,也可申请提取现金。
 3、邀请新用户每达到100人,奖励额外增加20%。
@@ -69,7 +68,6 @@ return array (
 3、提现扣除手续费1%
 4、相关额度会在1个工作日内审核发放,请注意查收',
   'intro_newuser_gift_goldnum' => '100',
-  'app_comment_audit_goldnum' => '50',
   'android_is_force' => '0',
   'android_apkUrl' => 'http://www.baidu.com',
   'android_apkName' => 'tken.1.0.1',

+ 0 - 2
application/extra/wallet.php

@@ -27,8 +27,6 @@ return [
         61 => '完成个人任务',
         63 => '邀请注册奖励',//gold +
 
-        70 => '好评有礼',//gold +
-
     ],
     'moneyname' => [
         'money'    => '余额',