LogisticsModel.php
581 字节
<?php
/**
* Created by PhpStorm.
* User: 29925
* Date: 2018/8/20
* Time: 10:58
*/
namespace app\admin\model;
use think\Model;
class LogisticsModel extends Model
{
protected $autoWriteTimestamp = true;
/**
* 添加物流
*/
public function addLogistics($data) {
$this->allowField(true)->data($data,true)->isUpdate(false)->save();
return $this;
}
/**
* 编辑物流
*/
public function editLogistics($data) {
$this->allowField(true)->data($data,true)->isUpdate(true)->save();
return $this;
}
}