File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1414
1515class ToolController extends CommonController
1616{
17+ /**
18+ * 公共函数输出方法
19+ * @param Request $request
20+ * @return \Illuminate\Http\Response
21+ */
1722 public function tool (Request $ request )
1823 {
1924 $ func = $ request ->input ('operation ' );
Original file line number Diff line number Diff line change @@ -78,21 +78,37 @@ public function openidSecret($input)
7878 return substr (md5 ($ input ), 0 , 16 );
7979 }
8080
81+ /**
82+ * @param $input
83+ * @return string
84+ */
8185 public function base64Encode ($ input )
8286 {
8387 return base64_encode ($ input );
8488 }
8589
90+ /**
91+ * @param $input
92+ * @return false|string
93+ */
8694 public function base64Decode ($ input )
8795 {
8896 return base64_decode ($ input );
8997 }
9098
99+ /**
100+ * @param $input
101+ * @return string
102+ */
91103 public function urlEncode ($ input )
92104 {
93105 return urlencode ($ input );
94106 }
95107
108+ /**
109+ * @param $input
110+ * @return string
111+ */
96112 public function urlDecode ($ input )
97113 {
98114 return urldecode ($ input );
You can’t perform that action at this time.
0 commit comments