API work
This commit is contained in:
parent
32595ab5a1
commit
13fb2cfe98
70 changed files with 3614 additions and 401 deletions
|
|
@ -176,6 +176,8 @@ class ShoppingUser extends Model
|
|||
'wp_order_number' => 'int',
|
||||
];
|
||||
|
||||
|
||||
|
||||
//can null
|
||||
public function member()
|
||||
{
|
||||
|
|
@ -243,4 +245,11 @@ class ShoppingUser extends Model
|
|||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getAPIShippedType() {
|
||||
if($this->shopping_order){
|
||||
return $this->shopping_order->getAPIShippedType();
|
||||
}
|
||||
return "free";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue