Store the customized Shopro mall so it can be kept on the remote.
Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model\shopro\user;
|
||||
|
||||
use app\admin\model\shopro\Common;
|
||||
|
||||
class Address extends Common
|
||||
{
|
||||
protected $name = 'shopro_user_address';
|
||||
|
||||
protected $type = [
|
||||
'is_default' => 'boolean'
|
||||
];
|
||||
|
||||
// 追加属性
|
||||
protected $append = [];
|
||||
|
||||
|
||||
public function scopeDefault($query)
|
||||
{
|
||||
return $query->where('is_default', 1);
|
||||
}
|
||||
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户