hrjy 2 лет назад
Родитель
Сommit
8bc431c1ea

+ 3 - 2
app/admin/controller/user/UserApply.php

@@ -55,8 +55,8 @@ class UserApply extends AuthController
     {
         $data = model::find($id);
         if (!$data) return Json::fail('数据不存在');
+        if ($data['status'] != 0) return Json::fail('已审核完成');
         $data['status'] = 1;
-
         //老师
         if ($type == 1){
             $res = \app\admin\model\user\User::where('uid', $data['uid'])->update(['alliance' => 1]) && $data->save();
@@ -71,10 +71,11 @@ class UserApply extends AuthController
         return Json::fail('失败');
     }
 
-    public function btg($id,$type)
+    public function btg($id)
     {
         $data = model::find($id);
         if (!$data) return Json::fail('数据不存在');
+        if ($data['status'] != 0) return Json::fail('已审核完成');
         $data['status'] = -1;
         $res = $data->save();
         if ($res) return Json::successful('成功');

+ 4 - 4
app/api/controller/user/UserBillController.php

@@ -292,8 +292,8 @@ class UserBillController
                             array(
                                 'url' => $urlCode,     //二维码资源
                                 'stream' => 0,
-                                'left' => 225,
-                                'top' => 913,
+                                'left' => 170,
+                                'top' => 600,
                                 'right' => 0,
                                 'bottom' => 0,
                                 'width' => 300,
@@ -305,7 +305,7 @@ class UserBillController
                             array(
                                 'text' => $user['nickname'],
                                 'left' => 250,
-                                'top' => 840,
+                                'top' => 920,
                                 'fontPath' => $rootPath . 'public' . DS . $filelink['Bold'],     //字体文件
                                 'fontSize' => 16,             //字号
                                 'fontColor' => '40,40,40',       //字体颜色
@@ -314,7 +314,7 @@ class UserBillController
                             array(
                                 'text' => '邀请您加入' . sys_config('site_name'),
                                 'left' => 250,
-                                'top' => 880,
+                                'top' => 940,
                                 'fontPath' => $rootPath . 'public' . DS . $filelink['Normal'],     //字体文件
                                 'fontSize' => 16,             //字号
                                 'fontColor' => '40,40,40',       //字体颜色