1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-26 20:52:44 +08:00

去除beforeCreate方法中的status状态

This commit is contained in:
koogua 2021-02-15 21:37:32 +08:00
parent 30515a2663
commit 879333adab
4 changed files with 0 additions and 8 deletions

View File

@ -144,8 +144,6 @@ class Order extends Model
public function beforeCreate() public function beforeCreate()
{ {
$this->status = self::STATUS_PENDING;
$this->sn = date('YmdHis') . rand(1000, 9999); $this->sn = date('YmdHis') . rand(1000, 9999);
if (is_array($this->item_info) && !empty($this->item_info)) { if (is_array($this->item_info) && !empty($this->item_info)) {

View File

@ -129,8 +129,6 @@ class Refund extends Model
public function beforeCreate() public function beforeCreate()
{ {
$this->status = self::STATUS_PENDING;
$this->sn = date('YmdHis') . rand(1000, 9999); $this->sn = date('YmdHis') . rand(1000, 9999);
$this->create_time = time(); $this->create_time = time();

View File

@ -104,8 +104,6 @@ class Task extends Model
public function beforeCreate() public function beforeCreate()
{ {
$this->status = self::STATUS_PENDING;
if (is_array($this->item_info) && !empty($this->item_info)) { if (is_array($this->item_info) && !empty($this->item_info)) {
$this->item_info = kg_json_encode($this->item_info); $this->item_info = kg_json_encode($this->item_info);
} }

View File

@ -126,8 +126,6 @@ class Trade extends Model
public function beforeCreate() public function beforeCreate()
{ {
$this->status = self::STATUS_PENDING;
$this->sn = date('YmdHis') . rand(1000, 9999); $this->sn = date('YmdHis') . rand(1000, 9999);
$this->create_time = time(); $this->create_time = time();