Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
90f65c7c
Commit
90f65c7c
authored
Sep 28, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改model
parent
8799babc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
main.php
common/config/main.php
+1
-1
Message.php
common/libs/Message.php
+0
-1
User.php
common/models/User.php
+7
-7
No files found.
common/config/main.php
View file @
90f65c7c
...
@@ -15,7 +15,7 @@ return [
...
@@ -15,7 +15,7 @@ return [
],
],
'db'
=>
[
'db'
=>
[
'class'
=>
'yii\db\Connection'
,
'class'
=>
'yii\db\Connection'
,
'dsn'
=>
'mysql:host=192.168.1.185;dbname=zuiketang
1
'
,
'dsn'
=>
'mysql:host=192.168.1.185;dbname=zuiketang'
,
'username'
=>
'root'
,
'username'
=>
'root'
,
'password'
=>
'mysql123'
,
'password'
=>
'mysql123'
,
'charset'
=>
'utf8'
,
'charset'
=>
'utf8'
,
...
...
common/libs/Message.php
View file @
90f65c7c
...
@@ -50,7 +50,6 @@ class Message
...
@@ -50,7 +50,6 @@ class Message
$content
.=
' '
.
Yii
::
$app
->
params
[
'msg.signature'
];
$content
.=
' '
.
Yii
::
$app
->
params
[
'msg.signature'
];
$this
->
query
[
'mobile'
]
=
$telephones
;
$this
->
query
[
'mobile'
]
=
$telephones
;
$this
->
query
[
'content'
]
=
$content
;
$this
->
query
[
'content'
]
=
$content
;
return
FALSE
;
try
{
try
{
$response
=
$this
->
httpClient
->
request
(
'GET'
,
$this
->
hosts
,
[
$response
=
$this
->
httpClient
->
request
(
'GET'
,
$this
->
hosts
,
[
'form_params'
=>
$this
->
query
'form_params'
=>
$this
->
query
...
...
common/models/User.php
View file @
90f65c7c
...
@@ -21,8 +21,8 @@ use yii\web\IdentityInterface;
...
@@ -21,8 +21,8 @@ use yii\web\IdentityInterface;
* @property string $avatar
* @property string $avatar
* @property string $wx_open_id
* @property string $wx_open_id
* @property string $ip
* @property string $ip
* @property string $create_at
* @property string $create
d
_at
* @property string $update_at
* @property string $update
d
_at
* @property string $logged_at
* @property string $logged_at
*
*
* @property BrowseRecord[] $browseRecords
* @property BrowseRecord[] $browseRecords
...
@@ -62,8 +62,8 @@ class User extends ActiveRecord implements IdentityInterface
...
@@ -62,8 +62,8 @@ class User extends ActiveRecord implements IdentityInterface
[
[
'class'
=>
TimestampBehavior
::
className
(),
'class'
=>
TimestampBehavior
::
className
(),
'attributes'
=>
[
'attributes'
=>
[
ActiveRecord
::
EVENT_BEFORE_INSERT
=>
[
'create
_at'
,
'update
_at'
],
ActiveRecord
::
EVENT_BEFORE_INSERT
=>
[
'create
d_at'
,
'updated
_at'
],
ActiveRecord
::
EVENT_BEFORE_UPDATE
=>
[
'update_at'
],
ActiveRecord
::
EVENT_BEFORE_UPDATE
=>
[
'update
d
_at'
],
],
],
// if you're using datetime instead of UNIX timestamp:
// if you're using datetime instead of UNIX timestamp:
// 'value' => new Expression('NOW()'),
// 'value' => new Expression('NOW()'),
...
@@ -78,7 +78,7 @@ class User extends ActiveRecord implements IdentityInterface
...
@@ -78,7 +78,7 @@ class User extends ActiveRecord implements IdentityInterface
return
[
return
[
[[
'username'
,
'auth_key'
,
'password_hash'
,
'telephone'
,
'ip'
,
'logged_at'
],
'required'
],
[[
'username'
,
'auth_key'
,
'password_hash'
,
'telephone'
,
'ip'
,
'logged_at'
],
'required'
],
[[
'role'
,
'status'
],
'integer'
],
[[
'role'
,
'status'
],
'integer'
],
[[
'create
_at'
,
'update
_at'
,
'logged_at'
],
'safe'
],
[[
'create
d_at'
,
'updated
_at'
,
'logged_at'
],
'safe'
],
[[
'username'
,
'auth_key'
,
'wx_open_id'
,
'ip'
],
'string'
,
'max'
=>
32
],
[[
'username'
,
'auth_key'
,
'wx_open_id'
,
'ip'
],
'string'
,
'max'
=>
32
],
[[
'password_hash'
],
'string'
,
'max'
=>
255
],
[[
'password_hash'
],
'string'
,
'max'
=>
255
],
[
'password_reset_token'
,
'string'
,
'max'
=>
32
],
[
'password_reset_token'
,
'string'
,
'max'
=>
32
],
...
@@ -106,8 +106,8 @@ class User extends ActiveRecord implements IdentityInterface
...
@@ -106,8 +106,8 @@ class User extends ActiveRecord implements IdentityInterface
'avatar'
=>
'avatar'
,
'avatar'
=>
'avatar'
,
'wx_open_id'
=>
'wx_open_id'
,
'wx_open_id'
=>
'wx_open_id'
,
'ip'
=>
'ip'
,
'ip'
=>
'ip'
,
'create
_at'
=>
'create
_at'
,
'create
d_at'
=>
'created
_at'
,
'update
_at'
=>
'update
_at'
,
'update
d_at'
=>
'updated
_at'
,
'logged_at'
=>
'logged_at'
,
'logged_at'
=>
'logged_at'
,
];
];
}
}
...
...
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