| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- namespace app\common\model;
- class TaxiUsersWithdraw extends BaseModel
- {
- /**
- * @var string
- */
- protected $name = 'taxi_user_withdraw';
- /**
- * @var array
- */
- protected $auto = [];
- /**
- * @var array
- */
- protected $insert = ['created_at','updated_at'];
- /**
- * @var array
- */
- protected $update = ['updated_at'];
- /**
- * 关联用户
- * @return \think\model\relation\BelongsTo
- */
- public function user()
- {
- return $this->belongsTo('Users','user_id','id');
- }
- /**
- * 关联用户
- * @return \think\model\relation\BelongsTo
- */
- public function taxiUser()
- {
- return $this->belongsTo('TaxiUser','taxi_uid','id');
- }
- /**
- * @param $value
- * @return false|string
- */
- public function getWechatQrcodeAttr($value)
- {
- return ['val'=>$value,'url'=> get_annex_url($value)];
- }
- /**
- * @param $value
- * @return false|string
- */
- public function getAlipayQrcodeAttr($value)
- {
- return ['val'=>$value,'url'=> get_annex_url($value)];
- }
- /**
- * @param $value
- * @return false|string
- */
- public function getCreatedAtAttr($value)
- {
- return ['val'=>$value,'text'=>date('m.d H:i', $value)];
- }
- }
|