阶段更新

This commit is contained in:
2020-09-29 14:17:56 +08:00
parent 996ed300f5
commit abfcfab3ba
26 changed files with 936 additions and 946 deletions

View File

@@ -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();
});

View File

@@ -1,8 +1,10 @@
<?php
namespace App\Models;
class PinganToken extends Model
{
protected $dates = [
'get_token_time',
];

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Models;
class UnionPayLog extends Model
{
protected $casts = [
'in_source' => 'array',
'out_source' => 'array',
];
}

View File

@@ -4,8 +4,10 @@ namespace App\Models;
class UserCode extends Model
{
protected $casts = [
'codes' => 'array',
'profit' => 'array',
];
}

View File

@@ -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
*/

View File

@@ -6,6 +6,6 @@ use App\Models\Traits\BelongsToUser;
class UserPingan extends Model
{
use BelongsToUser;
use BelongsToUser;
}

View File

@@ -4,8 +4,10 @@ namespace App\Models;
class WoCouponLog extends Model
{
public function coupon()
{
return $this->belongsTo(WoCoupon::class, 'wo_coupon_id', 'id');
}
}