Yin Bin há 4 meses atrás
pai
commit
c2859c25ce

+ 2 - 16
app/Models/AgentInfo.php

@@ -14,20 +14,15 @@ class AgentInfo extends Model
 
 	protected $table = 'agent_infos';
 
-
-
     /**
      * @Author FelixYin
      * @description 代理商所属会员
      */
     public function member()
     {
-        return $this->belongsTo('App\Models\MemberUser', 'user_id', 'undefined');
+        return $this->belongsTo('App\Models\MemberUser', 'user_id');
     }
 
-
-
-
     /**
      * @Author FelixYin
      * @description 代理商关联信息认证
@@ -37,9 +32,6 @@ class AgentInfo extends Model
         return $this->hasOne('App\Models\AgentInfoRecord', 'id', 'info_record_id');
     }
 
-
-
-
     /**
      * @Author FelixYin
      * @description 代理商关联实名认证信息
@@ -49,8 +41,6 @@ class AgentInfo extends Model
         return $this->hasOne('App\Models\AgentRealAuthRecord', 'id', 'real_auth_record_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 代理商开通项目分类
@@ -60,18 +50,15 @@ class AgentInfo extends Model
         return $this->hasMany('App\Models\AgentProjectCate', 'agent_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 代理商开通服务项目
      */
     public function projects()
     {
-        return $this->hasMany('App\Models\AgentProject', 'id', 'undefined');
+        return $this->hasMany('App\Models\AgentProject', 'id');
     }
 
-
     /**
      * @Author FelixYin
      * @description 代理商关联信息认证记录
@@ -81,7 +68,6 @@ class AgentInfo extends Model
         return $this->hasMany('App\Models\AgentInfoRecord', 'agent_id', 'id');
     }
 
-
     /**
      * @Author FelixYin
      * @description 代理商关联实名认证记录

+ 1 - 3
app/Models/AgentInfoRecord.php

@@ -14,14 +14,12 @@ class AgentInfoRecord extends Model
 
 	protected $table = 'agent_info_records';
 
-
-
     /**
      * @Author FelixYin
      * @description 信息认证记录所属代理商
      */
     public function agent()
     {
-        return $this->belongsTo('App\Models\AgentInfo', 'agent_id', 'undefined');
+        return $this->belongsTo('App\Models\AgentInfo', 'agent_id');
     }
 }

+ 1 - 3
app/Models/AgentProject.php

@@ -14,14 +14,12 @@ class AgentProject extends Model
 
 	protected $table = 'agent_project';
 
-
-
     /**
      * @Author FelixYin
      * @description 代理商开通项目所属分类
      */
     public function cate()
     {
-        return $this->belongsTo('App\Models\AgentProjectCate', 'cate_id', 'undefined');
+        return $this->belongsTo('App\Models\AgentProjectCate', 'cate_id');
     }
 }

+ 1 - 5
app/Models/AgentProjectCate.php

@@ -14,19 +14,15 @@ class AgentProjectCate extends Model
 
 	protected $table = 'agent_project_cate';
 
-
-
     /**
      * @Author FelixYin
      * @description 代理商项目分类所属系统项目分类
      */
     public function parentCate()
     {
-        return $this->belongsTo('App\Models\ProjectCate', 'cate_id', 'undefined');
+        return $this->belongsTo('App\Models\ProjectCate', 'cate_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 代理商项目分类包含服务项目

+ 1 - 3
app/Models/AgentRealAuthRecord.php

@@ -14,14 +14,12 @@ class AgentRealAuthRecord extends Model
 
 	protected $table = 'agent_real_auth_records';
 
-
-
     /**
      * @Author FelixYin
      * @description 实名认证记录所属代理商
      */
     public function agent()
     {
-        return $this->belongsTo('App\Models\AgentInfo', 'agent_id', 'undefined');
+        return $this->belongsTo('App\Models\AgentInfo', 'agent_id');
     }
 }

+ 1 - 4
app/Models/CoachInfoRecord.php

@@ -16,15 +16,12 @@ class CoachInfoRecord extends Model
 
     protected $guarded = [];
 
-
-
-
     /**
      * @Author FelixYin
      * @description 信息记录所属技师
      */
     public function coach()
     {
-        return $this->belongsTo('App\Models\CoachUser', 'coach_id', 'undefined');
+        return $this->belongsTo('App\Models\CoachUser', 'coach_id');
     }
 }

+ 1 - 3
app/Models/CoachLocation.php

@@ -16,14 +16,12 @@ class CoachLocation extends Model
 
     protected $guarded = [];
 
-
-
     /**
      * @Author FelixYin
      * @description 定位所属技师
      */
     public function coach()
     {
-        return $this->belongsTo('App\Models\CoachUser', 'coach_id', 'undefined');
+        return $this->belongsTo('App\Models\CoachUser', 'coach_id');
     }
 }

+ 1 - 3
app/Models/CoachProject.php

@@ -14,14 +14,12 @@ class CoachProject extends Model
 
 	protected $table = 'coach_project';
 
-
-
     /**
      * @Author FelixYin
      * @description 技师开通项目所属服务项目
      */
     public function basicInfo()
     {
-        return $this->belongsTo('App\Models\Project', 'project_id', 'undefined');
+        return $this->belongsTo('App\Models\Project', 'project_id');
     }
 }

+ 1 - 3
app/Models/CoachQualRecord.php

@@ -14,14 +14,12 @@ class CoachQualRecord extends Model
 
 	protected $table = 'coach_qual_records';
 
-
-
     /**
      * @Author FelixYin
      * @description 资质记录所属技师
      */
     public function coach()
     {
-        return $this->belongsTo('App\Models\CoachUser', 'coach_id', 'undefined');
+        return $this->belongsTo('App\Models\CoachUser', 'coach_id');
     }
 }

+ 2 - 34
app/Models/CoachUser.php

@@ -26,20 +26,15 @@ class CoachUser extends Model
 		});
 	}
 
-
-
     /**
      * @Author FelixYin
      * @description 技师所属会员
      */
     public function member()
     {
-        return $this->belongsTo('App\Models\MemberUser', 'user_id', 'undefined');
+        return $this->belongsTo('App\Models\MemberUser', 'user_id');
     }
 
-
-
-
     /**
      * @Author FelixYin
      * @description 技师关联信息
@@ -49,9 +44,6 @@ class CoachUser extends Model
         return $this->hasOne('App\Models\CoachInfoRecord', 'id', 'info_record_id');
     }
 
-
-
-
     /**
      * @Author FelixYin
      * @description 技师关联资质信息
@@ -61,8 +53,6 @@ class CoachUser extends Model
         return $this->hasOne('App\Models\CoachQualRecord', 'id', 'qualification_record_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 技师关联评分
@@ -72,8 +62,6 @@ class CoachUser extends Model
         return $this->hasOne('App\Models\CoachScore', 'coach_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 技师关联定位
@@ -83,8 +71,6 @@ class CoachUser extends Model
         return $this->hasMany('App\Models\CoachLocation', 'coach_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 技师关联订单
@@ -94,8 +80,6 @@ class CoachUser extends Model
         return $this->hasMany('App\Models\OrderInfo', 'coach_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 技师关联抢单记录
@@ -105,8 +89,6 @@ class CoachUser extends Model
         return $this->hasMany('App\Models\OrderGrabRecord', 'coach_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 技师关联评论
@@ -116,19 +98,15 @@ class CoachUser extends Model
         return $this->hasMany('App\Models\OrderComment', 'coach_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 技师关联钱包
      */
     public function wallet()
     {
-        return $this->MORPH_ONE('App\Models\Wallet', 'undefined', 'undefined');
+        return $this->MORPH_ONE('App\Models\Wallet', 'undefined');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 技师所属店铺
@@ -138,8 +116,6 @@ class CoachUser extends Model
         return $this->belongsTo('App\Models\ShopInfo', 'shop_id', 'shop_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 技师关联店铺开通服务
@@ -149,9 +125,6 @@ class CoachUser extends Model
         return $this->hasMany('App\Models\ShopCoachService', 'coach_id', 'id');
     }
 
-
-
-
     /**
      * @Author FelixYin
      * @description 技师关联实名信息
@@ -161,8 +134,6 @@ class CoachUser extends Model
         return $this->hasOne('App\Models\CoachRealAuthRecord', 'id', 'real_auth_record_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 技师开通项目
@@ -172,7 +143,6 @@ class CoachUser extends Model
         return $this->hasMany('App\Models\CoachProject', 'coach_id', 'id');
     }
 
-
     /**
      * @Author FelixYin
      * @description 基本信息认证记录
@@ -182,7 +152,6 @@ class CoachUser extends Model
         return $this->hasMany('App\Models\CoachInfoRecord', 'coach_id', 'id');
     }
 
-
     /**
      * @Author FelixYin
      * @description 技师关联资质记录
@@ -192,7 +161,6 @@ class CoachUser extends Model
         return $this->hasMany('App\Models\CoachQualRecord', 'coach_id', 'id');
     }
 
-
     /**
      * @Author FelixYin
      * @description 技师关联实名认证记录

+ 1 - 3
app/Models/MemberAddress.php

@@ -14,14 +14,12 @@ class MemberAddress extends Model
 
 	protected $table = 'member_address';
 
-
-
     /**
      * @Author FelixYin
      * @description 地址所属会员
      */
     public function member()
     {
-        return $this->belongsTo('App\Models\MemberUser', 'user_id', 'undefined');
+        return $this->belongsTo('App\Models\MemberUser', 'user_id');
     }
 }

+ 1 - 6
app/Models/MemberRealAuthRecord.php

@@ -14,17 +14,12 @@ class MemberRealAuthRecord extends Model
 
 	protected $table = 'member_real_auth_records';
 
-
-	
-
-
-
     /**
      * @Author FelixYin
      * @description 实名认证记录所属会员
      */
     public function member()
     {
-        return $this->belongsTo('App\Models\MemberUser', 'user_id', 'undefined');
+        return $this->belongsTo('App\Models\MemberUser', 'user_id');
     }
 }

+ 1 - 7
app/Models/MemberSocialAccount.php

@@ -14,18 +14,12 @@ class MemberSocialAccount extends Model
 
 	protected $table = 'member_social_accounts';
 
-
-
-	
-
-
-
     /**
      * @Author FelixYin
      * @description 社交账号所属会员
      */
     public function member()
     {
-        return $this->belongsTo('App\Models\MemberUser', 'user_id', 'undefined');
+        return $this->belongsTo('App\Models\MemberUser', 'user_id');
     }
 }

+ 1 - 19
app/Models/MemberUser.php

@@ -27,8 +27,6 @@ class MemberUser extends Model
 		});
 	}
 
-
-
     /**
      * @Author FelixYin
      * @description 用户关联社交账户
@@ -38,8 +36,6 @@ class MemberUser extends Model
         return $this->hasMany('App\Models\MemberSocialAccount', 'user_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 用户关联地址
@@ -49,8 +45,6 @@ class MemberUser extends Model
         return $this->hasMany('App\Models\MemberAddress', 'user_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 用户关联技师身份
@@ -60,8 +54,6 @@ class MemberUser extends Model
         return $this->hasOne('App\Models\CoachUser', 'user_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 用户关联订单
@@ -71,8 +63,6 @@ class MemberUser extends Model
         return $this->hasMany('App\Models\OrderInfo', 'user_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 用户关联评论
@@ -82,8 +72,6 @@ class MemberUser extends Model
         return $this->hasMany('App\Models\OrderComment', 'user_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 用户关联钱包
@@ -93,8 +81,6 @@ class MemberUser extends Model
         return $this->MORPH_ONE('App\Models\Wallet', 'undefined', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 用户关联店铺身份
@@ -104,8 +90,6 @@ class MemberUser extends Model
         return $this->hasOne('App\Models\ShopInfo', 'user_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 用户关联代理商身份
@@ -115,14 +99,12 @@ class MemberUser extends Model
         return $this->hasOne('App\Models\AgentInfo', 'user_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 会员所属行政区划
      */
     public function region()
     {
-        return $this->belongsTo('App\Models\SysRegion', 'register_area', 'undefined');
+        return $this->belongsTo('App\Models\SysRegion', 'register_area');
     }
 }

+ 3 - 9
app/Models/OrderComment.php

@@ -14,36 +14,30 @@ class OrderComment extends Model
 
 	protected $table = 'order_comments';
 
-
-
     /**
      * @Author FelixYin
      * @description 评论所属订单
      */
     public function order()
     {
-        return $this->belongsTo('App\Models\OrderInfo', 'order_id', 'undefined');
+        return $this->belongsTo('App\Models\OrderInfo', 'order_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 评论所属会员
      */
     public function member()
     {
-        return $this->belongsTo('App\Models\MemberUser', 'user_id', 'undefined');
+        return $this->belongsTo('App\Models\MemberUser', 'user_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 评论所属技师
      */
     public function coach()
     {
-        return $this->belongsTo('App\Models\CoachUser', 'coach_id', 'undefined');
+        return $this->belongsTo('App\Models\CoachUser', 'coach_id');
     }
 }

+ 1 - 3
app/Models/OrderDistRecord.php

@@ -14,14 +14,12 @@ class OrderDistRecord extends Model
 
 	protected $table = 'order_dist_records';
 
-
-
     /**
      * @Author FelixYin
      * @description 分销记录所属订单
      */
     public function order()
     {
-        return $this->belongsTo('App\Models\OrderInfo', 'order_id', 'undefined');
+        return $this->belongsTo('App\Models\OrderInfo', 'order_id');
     }
 }

+ 1 - 3
app/Models/OrderExcRecord.php

@@ -14,14 +14,12 @@ class OrderExcRecord extends Model
 
 	protected $table = 'order_exc_records';
 
-
-
     /**
      * @Author FelixYin
      * @description 异常所属订单
      */
     public function order()
     {
-        return $this->belongsTo('App\Models\OrderInfo', 'order_id', 'undefined');
+        return $this->belongsTo('App\Models\OrderInfo', 'order_id');
     }
 }

+ 2 - 6
app/Models/OrderGrabRecord.php

@@ -14,25 +14,21 @@ class OrderGrabRecord extends Model
 
 	protected $table = 'order_grab_records';
 
-
-
     /**
      * @Author FelixYin
      * @description 抢单记录所属订单
      */
     public function order()
     {
-        return $this->belongsTo('App\Models\OrderInfo', 'order_id', 'undefined');
+        return $this->belongsTo('App\Models\OrderInfo', 'order_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 抢单记录所属技师
      */
     public function coach()
     {
-        return $this->belongsTo('App\Models\CoachUser', 'coach_id', 'undefined');
+        return $this->belongsTo('App\Models\CoachUser', 'coach_id');
     }
 }

+ 1 - 3
app/Models/OrderRecord.php

@@ -14,14 +14,12 @@ class OrderRecord extends Model
 
 	protected $table = 'order_records';
 
-
-
     /**
      * @Author FelixYin
      * @description 记录所属订单
      */
     public function order()
     {
-        return $this->belongsTo('App\Models\OrderInfo', 'order_id', 'undefined');
+        return $this->belongsTo('App\Models\OrderInfo', 'order_id');
     }
 }

+ 1 - 5
app/Models/Project.php

@@ -14,19 +14,15 @@ class Project extends Model
 
 	protected $table = 'project';
 
-
-
     /**
      * @Author FelixYin
      * @description 项目服务所属分类
      */
     public function cate()
     {
-        return $this->belongsTo('App\Models\ProjectCate', 'cate_id', 'undefined');
+        return $this->belongsTo('App\Models\ProjectCate', 'cate_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 项目服务关联店铺服务

+ 0 - 2
app/Models/ProjectCate.php

@@ -14,8 +14,6 @@ class ProjectCate extends Model
 
 	protected $table = 'project_cate';
 
-
-
     /**
      * @Author FelixYin
      * @description 项目分类关联服务

+ 1 - 3
app/Models/ShopAuthRecord.php

@@ -14,14 +14,12 @@ class ShopAuthRecord extends Model
 
 	protected $table = 'shop_auth_records';
 
-
-
     /**
      * @Author FelixYin
      * @description 认证记录所属店铺
      */
     public function shop()
     {
-        return $this->belongsTo('App\Models\ShopInfo', 'shop_id', 'undefined');
+        return $this->belongsTo('App\Models\ShopInfo', 'shop_id');
     }
 }

+ 2 - 6
app/Models/ShopCoachService.php

@@ -14,25 +14,21 @@ class ShopCoachService extends Model
 
 	protected $table = 'shop_coach_services';
 
-
-
     /**
      * @Author FelixYin
      * @description 技师服务所属店铺项目
      */
     public function shopService()
     {
-        return $this->belongsTo('App\Models\ShopService', 'service_id', 'undefined');
+        return $this->belongsTo('App\Models\ShopService', 'service_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 店铺开通服务所属技师
      */
     public function coach()
     {
-        return $this->belongsTo('App\Models\CoachUser', 'coach_id', 'undefined');
+        return $this->belongsTo('App\Models\CoachUser', 'coach_id');
     }
 }

+ 1 - 11
app/Models/ShopInfo.php

@@ -14,20 +14,15 @@ class ShopInfo extends Model
 
 	protected $table = 'shop_infos';
 
-
-
     /**
      * @Author FelixYin
      * @description 店铺所属会员
      */
     public function member()
     {
-        return $this->belongsTo('App\Models\MemberUser', 'user_id', 'undefined');
+        return $this->belongsTo('App\Models\MemberUser', 'user_id');
     }
 
-
-
-
     /**
      * @Author FelixYin
      * @description 店铺关联认证信息
@@ -37,8 +32,6 @@ class ShopInfo extends Model
         return $this->hasOne('App\Models\ShopAuthRecord', 'id', 'auth_record_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 店铺关联技师
@@ -48,8 +41,6 @@ class ShopInfo extends Model
         return $this->hasMany('App\Models\CoachUser', 'shop_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 店铺关联服务
@@ -59,7 +50,6 @@ class ShopInfo extends Model
         return $this->hasMany('App\Models\ShopService', 'shop_id', 'id');
     }
 
-
     /**
      * @Author FelixYin
      * @description 店铺关联认证记录

+ 2 - 8
app/Models/ShopService.php

@@ -14,30 +14,24 @@ class ShopService extends Model
 
 	protected $table = 'shop_services';
 
-
-
     /**
      * @Author FelixYin
      * @description 服务所属店铺
      */
     public function shop()
     {
-        return $this->belongsTo('App\Models\ShopInfo', 'shop_id', 'undefined');
+        return $this->belongsTo('App\Models\ShopInfo', 'shop_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 店铺服务所属项目
      */
     public function project()
     {
-        return $this->belongsTo('App\Models\Project', 'service_id', 'undefined');
+        return $this->belongsTo('App\Models\Project', 'service_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 店铺项目关联技师服务

+ 1 - 3
app/Models/SysRegion.php

@@ -14,14 +14,12 @@ class SysRegion extends Model
 
 	protected $table = 'sys_region';
 
-
-
     /**
      * @Author FelixYin
      * @description 行政区划所属上级区划
      */
     public function parentRegion()
     {
-        return $this->belongsTo('App\Models\SysRegion', 'parentId', 'undefined');
+        return $this->belongsTo('App\Models\SysRegion', 'parentId');
     }
 }

+ 1 - 8
app/Models/Wallet.php

@@ -18,9 +18,6 @@ class Wallet extends Model
         'owner_type', // 添加这一行以允许 mass assignment
     ];
 
-
-
-
     /**
      * @Author FelixYin
      * @description 钱包交易记录
@@ -30,8 +27,6 @@ class Wallet extends Model
         return $this->hasMany('App\Models\WalletTransRecord', 'wallet_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 钱包关联提现记录
@@ -41,14 +36,12 @@ class Wallet extends Model
         return $this->hasMany('App\Models\WalletWithdrawRecord', 'wallet_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 钱包所属会员
      */
     public function member()
     {
-        return $this->belongsTo('App\Models\MemberUser', 'owner_id', 'undefined');
+        return $this->belongsTo('App\Models\MemberUser', 'owner_id');
     }
 }

+ 2 - 6
app/Models/WalletPaymentRecord.php

@@ -14,25 +14,21 @@ class WalletPaymentRecord extends Model
 
 	protected $table = 'wallet_payment_records';
 
-
-
     /**
      * @Author FelixYin
      * @description 支付记录所属交易
      */
     public function trans()
     {
-        return $this->belongsTo('App\Models\WalletTransRecord', 'trans_record_id', 'undefined');
+        return $this->belongsTo('App\Models\WalletTransRecord', 'trans_record_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 支付记录所属钱包
      */
     public function wallet()
     {
-        return $this->belongsTo('App\Models\Wallet', 'wallet_id', 'undefined');
+        return $this->belongsTo('App\Models\Wallet', 'wallet_id');
     }
 }

+ 2 - 6
app/Models/WalletRefundRecord.php

@@ -14,25 +14,21 @@ class WalletRefundRecord extends Model
 
 	protected $table = 'wallet_refund_records';
 
-
-
     /**
      * @Author FelixYin
      * @description 退款记录所属钱包
      */
     public function wallet()
     {
-        return $this->belongsTo('App\Models\Wallet', 'wallet_id', 'undefined');
+        return $this->belongsTo('App\Models\Wallet', 'wallet_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 退款记录所属交易
      */
     public function trans()
     {
-        return $this->belongsTo('App\Models\WalletTransRecord', 'trans_record_id', 'undefined');
+        return $this->belongsTo('App\Models\WalletTransRecord', 'trans_record_id');
     }
 }

+ 1 - 9
app/Models/WalletTransRecord.php

@@ -14,19 +14,15 @@ class WalletTransRecord extends Model
 
 	protected $table = 'wallet_trans_records';
 
-
-
     /**
      * @Author FelixYin
      * @description 交易记录所属钱包
      */
     public function wallet()
     {
-        return $this->belongsTo('App\Models\Wallet', 'wallet_id', 'undefined');
+        return $this->belongsTo('App\Models\Wallet', 'wallet_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 钱包交易关联提现记录
@@ -36,8 +32,6 @@ class WalletTransRecord extends Model
         return $this->hasOne('App\Models\WalletWithdrawRecord', 'trans_record_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 交易关联支付记录
@@ -47,8 +41,6 @@ class WalletTransRecord extends Model
         return $this->hasMany('App\Models\WalletPaymentRecord', 'trans_record_id', 'id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 交易关联退款记录

+ 2 - 7
app/Models/WalletWithdrawRecord.php

@@ -16,26 +16,21 @@ class WalletWithdrawRecord extends Model
 
 	protected $guarded = [];
 
-
-
-
     /**
      * @Author FelixYin
      * @description 提现记录所属交易
      */
     public function trans()
     {
-        return $this->belongsTo('App\Models\WalletTransRecord', 'trans_record_id', 'undefined');
+        return $this->belongsTo('App\Models\WalletTransRecord', 'trans_record_id');
     }
 
-
-
     /**
      * @Author FelixYin
      * @description 提现记录所属钱包
      */
     public function wallet()
     {
-        return $this->belongsTo('App\Models\Wallet', 'wallet_id', 'undefined');
+        return $this->belongsTo('App\Models\Wallet', 'wallet_id');
     }
 }