1234567891011121314151617181920212223242526272829 |
- <?php
- namespace app\common\model;
- use think\Model;
- class UserOrderLog extends Model
- {
- public static $status=[
- UserOrder::STATUS_WAIT_GETTING=>'已接单正在取宠',
- UserOrder::STATUS_SENDING=>'已取宠正在运输',
- UserOrder::STATUS_GIVING=>'宠物已启程,请关注收宠',
- UserOrder::STATUS_COMPLETE=>'订单已完成',
- 0=>'状态更新',
- ];
- public static $txt=[
- UserOrder::STATUS_WAIT_GETTING=>'请您保持电话畅通方便与您联系',
- UserOrder::STATUS_SENDING=>'正在快马加鞭运输中请您耐心等待',
- UserOrder::STATUS_GIVING=>'感谢您的支持正在努力送宠中',
- UserOrder::STATUS_COMPLETE=>'订单已完成服务永不止哦~~~',
- 0=>'',
- ];
- public function orders(){
- return $this->belongsTo(UserOrder::class,'order_id');
- }
- public function getStatusAttr($v,$data){
- return self::$status[$data['status']];
- }
- }
|