xiaogang 4 лет назад
Родитель
Сommit
8f5f2bc31a
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      app/Http/Controllers/Api/UserController.php

+ 4 - 4
app/Http/Controllers/Api/UserController.php

xqd
@@ -425,15 +425,15 @@ class UserController extends Controller
 
             $images = array(
                 array(
-//                    'image' => base64_encode(file_get_contents($userinfo->avatar)),
-                    'image' => base64_encode(file_get_contents("https://zhengda.oss-accelerate.aliyuncs.com/tinymce/images/dcdc14c5987ebbb233a6232264bb80e260f4f496e12ba.jpg")),
+                    'image' => base64_encode(file_get_contents($userinfo->avatar)),
+//                    'image' => base64_encode(file_get_contents("https://zhengda.oss-accelerate.aliyuncs.com/tinymce/images/dcdc14c5987ebbb233a6232264bb80e260f4f496e12ba.jpg")),
                     'image_type' => 'BASE64',
                     'liveness_control'=>'NORMAL',
                 ),
                 array(
-//                    'image' => $request->auth_pic,
+                    'image' => $request->auth_pic,
 //                    'image' => base64_encode(file_get_contents($request->auth_pic)),
-                    'image' => base64_encode(file_get_contents("https://zhengda.oss-accelerate.aliyuncs.com/tinymce/images/cea206a2046b895f253445f35794226860f4f4df1d786.jpg")),
+//                    'image' => base64_encode(file_get_contents("https://zhengda.oss-accelerate.aliyuncs.com/tinymce/images/cea206a2046b895f253445f35794226860f4f4df1d786.jpg")),
                     'image_type' => 'BASE64',
                     //'liveness_control'=>'NORMAL',
                 ),