Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a6bb15e

Browse files
committed
fix: add text description
1 parent e16db98 commit a6bb15e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

‎laravel/app/Http/Controllers/Bus/ToolController.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
class 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');

‎laravel/app/Http/Repository/ToolRepository.php‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /