chengzhiyixia 1 anno fa
parent
commit
71e3e44758
1 ha cambiato i file con 1 aggiunte e 54 eliminazioni
  1. 1 54
      app/controller/api/user/User.php

+ 1 - 54
app/controller/api/user/User.php

@@ -200,7 +200,7 @@ class User extends BaseController
200
         $uid = $this->request->uid();
200
         $uid = $this->request->uid();
201
         $data = [
201
         $data = [
202
             "name"=>"VR转账",
202
             "name"=>"VR转账",
203
-            "url"=>'https://show.hxxfb.com/?uid=' .$uid,
203
+            "url"=>'https://show.gdjbp.com/?uid=' .$uid,
204
         ];
204
         ];
205
         return app('json')->success($data);
205
         return app('json')->success($data);
206
     }
206
     }
@@ -3312,59 +3312,6 @@ return app("json")->success($data);
3312
                 return app('json')->fail('转VR失败');
3312
                 return app('json')->fail('转VR失败');
3313
             }
3313
             }
3314
         }
3314
         }
3315
-
3316
-
3317
-        if ($type == 'hongbao') {
3318
-            $hongbao = Db::name('user')->where('uid', $uid)->value('hongbao');
3319
-            $no_clear_amount = Db::name('user_sign_hongbao')
3320
-                ->where('uid', $uid)
3321
-                ->where('type', 1)
3322
-                ->where('status', -1)
3323
-                ->sum('number');
3324
-            $clear_amount = $hongbao - $no_clear_amount;
3325
-            if ($user['hongbao'] < (systemConfig('withdrawal_money'))){
3326
-                return app('json')->fail('未到达提现最低额度');
3327
-            }
3328
-            if($extract_amount > $clear_amount){
3329
-                return app('json')->fail("可用金额不足提现");
3330
-            }
3331
-
3332
-            $hongbao = bcsub($user['hongbao'], $extract_amount,2);
3333
-            $user->hongbao = $hongbao;
3334
-
3335
-            $vr = bcadd($user['vr'], $extract_amount, 2);
3336
-            $user->vr = $vr;
3337
-
3338
-            $res = $user->save();
3339
-            if ($res){
3340
-                //加入转VR记录
3341
-                $insertdata = [
3342
-                    'uid'=> $uid,
3343
-                    'number' =>  $extract_amount,
3344
-                    'surplus' => $vr,
3345
-                    'mark' => '红包转VR',
3346
-                    'type' => 2,
3347
-                    'create_time' => time(),
3348
-                ];
3349
-                Db::name('user_transition_vr')->insertGetId($insertdata);
3350
-                //VR入账
3351
-                $insertdata = [
3352
-                    'uid'=> $uid,
3353
-                    'number' =>  $extract_amount,
3354
-                    'surplus' => $vr,
3355
-                    'mark' => '红包转VR',
3356
-                    'order_id'=> 0,
3357
-                    'type' => 1,
3358
-                    'addtime' => time(),
3359
-                    'settlement_time'=> date('Y-m-d H:i:s', time())
3360
-                ];
3361
-                Db::name('user_sign_vr')->insertGetId($insertdata);
3362
-                return app('json')->success('转VR成功');
3363
-            }else{
3364
-        return app('json')->fail('转VR失败');
3365
-            }
3366
-        }
3367
-
3368
         return app('json')->fail('转VR失败');
3315
         return app('json')->fail('转VR失败');
3369
     }
3316
     }
3370
 
3317