阶段更新
This commit is contained in:
@@ -40,9 +40,9 @@ class Log extends Model
|
||||
Schema::create($this->table, function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('path', 255);
|
||||
$table->string('method', 15)->index();
|
||||
$table->string('method', 15);
|
||||
$table->text('in_source');
|
||||
$table->string('type', 20)->index();
|
||||
$table->string('type', 20);
|
||||
$table->text('out_source')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
class PinganToken extends Model
|
||||
{
|
||||
|
||||
protected $dates = [
|
||||
'get_token_time',
|
||||
];
|
||||
|
||||
13
app/Models/UnionPayLog.php
Normal file
13
app/Models/UnionPayLog.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
class UnionPayLog extends Model
|
||||
{
|
||||
|
||||
protected $casts = [
|
||||
'in_source' => 'array',
|
||||
'out_source' => 'array',
|
||||
];
|
||||
|
||||
}
|
||||
@@ -4,8 +4,10 @@ namespace App\Models;
|
||||
|
||||
class UserCode extends Model
|
||||
{
|
||||
|
||||
protected $casts = [
|
||||
'codes' => 'array',
|
||||
'profit' => 'array',
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ class UserInfo extends Model
|
||||
/**
|
||||
* Notes: 获取性别的文字显示
|
||||
* @Author: <C.Jason>
|
||||
* @Date: 2019/9/12 09:46
|
||||
* @Date : 2019/9/12 09:46
|
||||
* @return string
|
||||
*/
|
||||
protected function getSexTextAttribute()
|
||||
@@ -35,7 +35,7 @@ class UserInfo extends Model
|
||||
/**
|
||||
* Notes: 处理默认头像
|
||||
* @Author: <C.Jason>
|
||||
* @Date: 2019/9/12 13:44
|
||||
* @Date : 2019/9/12 13:44
|
||||
* @param $avatar
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -6,6 +6,6 @@ use App\Models\Traits\BelongsToUser;
|
||||
|
||||
class UserPingan extends Model
|
||||
{
|
||||
use BelongsToUser;
|
||||
|
||||
use BelongsToUser;
|
||||
}
|
||||
|
||||
@@ -4,8 +4,10 @@ namespace App\Models;
|
||||
|
||||
class WoCouponLog extends Model
|
||||
{
|
||||
|
||||
public function coupon()
|
||||
{
|
||||
return $this->belongsTo(WoCoupon::class, 'wo_coupon_id', 'id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user