Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_server_welfare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
49171450
authored
Aug 23, 2019
by
叶明星
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
话费充值服务
parent
234783a4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletions
app/Http/Middleware/UniqueMiddleware.php
app/Models/Recharge.php
app/Http/Middleware/UniqueMiddleware.php
0 → 100644
View file @
49171450
<?php
namespace
App\Http\Middleware
;
use
Closure
;
use
App\Model\TokenModel
;
class
UniqueMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public
function
handle
(
$request
,
Closure
$next
)
{
//设置唯一追踪值
$request
->
offsetSet
(
'unique'
,
getUnique
(
true
));
return
$next
(
$request
);
}
}
app/Models/Recharge.php
View file @
49171450
...
...
@@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Model;
class
Recharge
extends
Model
{
protected
$connection
=
false
;
private
$key
=
''
;
private
$key
=
'
b6ca0e6b55c2d10ebb0e6803a263bcd4
'
;
private
$OpenID
=
'JH3f55c02fc5aaf8e1bca362b9de5051ba'
;
//话费充值
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment