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:
parent
30515a2663
commit
879333adab
@ -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)) {
|
||||||
|
@ -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();
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user