新增快递100回调
This commit is contained in:
@@ -67,4 +67,25 @@ class OrderProductLogistic extends Model
|
||||
{
|
||||
return self::where($params)->exists();
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param array $data
|
||||
* @return \Hyperf\Database\Model\Model|OrderProductLogistic
|
||||
*/
|
||||
public static function addOrderProductLogistic(array $data): \Hyperf\Database\Model\Model|OrderProductLogistic
|
||||
{
|
||||
return self::create($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param array $params
|
||||
* @param array $data
|
||||
* @return int
|
||||
*/
|
||||
public static function edit(array $params = [], array $data = []): int
|
||||
{
|
||||
return self::where($params)->update($data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user