作者 lyh

gx

@@ -64,7 +64,7 @@ if(!function_exists('http_post')){ @@ -64,7 +64,7 @@ if(!function_exists('http_post')){
64 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 64 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
65 $res = curl_exec($ch); 65 $res = curl_exec($ch);
66 if (curl_errno($ch)) { 66 if (curl_errno($ch)) {
67 - \Illuminate\Support\Facades\Log::write(print_r(curl_errno($ch),1),'debug---1'); 67 + \Illuminate\Support\Facades\Log::info(print_r(curl_errno($ch),1),'debug---1');
68 } 68 }
69 curl_close($ch); 69 curl_close($ch);
70 return json_decode($res, true); 70 return json_decode($res, true);
@@ -32,7 +32,7 @@ class CustomRequest extends FormRequest @@ -32,7 +32,7 @@ class CustomRequest extends FormRequest
32 { 32 {
33 $rule = [ 33 $rule = [
34 'name' => ['required','max:100'], 34 'name' => ['required','max:100'],
35 - 'title' => ['required','max:200'], 35 +// 'title' => ['required','max:200'],
36 'keywords' => ['required','max:200'], 36 'keywords' => ['required','max:200'],
37 'description' => ['required','max:250'], 37 'description' => ['required','max:250'],
38 // 'html' => ['required'], 38 // 'html' => ['required'],
@@ -61,8 +61,8 @@ class CustomRequest extends FormRequest @@ -61,8 +61,8 @@ class CustomRequest extends FormRequest
61 61
62 'name.required' => '名称必须', 62 'name.required' => '名称必须',
63 'name.max' => '名称不能超过100个字符', 63 'name.max' => '名称不能超过100个字符',
64 - 'title.required' => '网页标题必须',  
65 - 'title.max' => '网页标题不能超过200个字符', 64 +// 'title.required' => '网页标题必须',
  65 +// 'title.max' => '网页标题不能超过200个字符',
66 'keywords.required' => '网页关键字必须', 66 'keywords.required' => '网页关键字必须',
67 'keywords.max' => '网页关键字不能超过200个字符', 67 'keywords.max' => '网页关键字不能超过200个字符',
68 'description.required' => '网页描述必须', 68 'description.required' => '网页描述必须',