WIN-2308041133\Administrator 6 months ago
parent
commit
2493b349bc
1 changed files with 5 additions and 1 deletions
  1. 5 1
      application/api/controller/Pay.php

+ 5 - 1
application/api/controller/Pay.php

@@ -612,7 +612,11 @@ class Pay extends Api
         $num = input('num'); //购买的版权数量
         $uid = input('uid');
         $vid = input('vid');
-        var_dump($uid);die();
+        $user = Db::name('user')->where('id', $uid)->find();
+        if (empty($user)){
+            $this->error(__('用户不存在'));
+        }
+
 //        验证数量
         $user_num = Db::name('video_user')->where('uid', $uid)->where('vid', $vid)->find();
         if ($user_num) {