1 | <?php |
||
27 | class Order extends \yii\db\ActiveRecord |
||
28 | { |
||
29 | const PAYMENT_METHOD_ALIPAY = 1; |
||
30 | const PAYMENT_METHOD_WECHATPAY = 2; |
||
31 | const PAYMENT_METHOD_QRCODE = 3; |
||
32 | |||
33 | const STATUS_RETURN_FAILED = -5; //退货失败 |
||
34 | const STATUS_RETURNED = -4;// 已退货 |
||
35 | const STATUS_RETURNING = -3; //退货中 |
||
36 | const STATUS_DELETED = -2; //已删除 |
||
37 | const STATUS_CANCELED = -1; //已取消 |
||
38 | const STATUS_UNPAID = 0; //未支付 |
||
39 | const STATUS_PAID = 1; //已支付 |
||
40 | const STATUS_UNSHIPPED = 2; //未发货 |
||
41 | const STATUS_SHIPPED = 3; //已发货 |
||
42 | const STATUS_DELIVERED = 4; //已签收 |
||
43 | const STATUS_CONSUMED = 5; //已消费 |
||
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | */ |
||
48 | 1 | public static function tableName() |
|
52 | |||
53 | /** |
||
54 | * @inheritdoc |
||
55 | */ |
||
56 | 1 | public function rules() |
|
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | 1 | public function attributeLabels() |
|
89 | |||
90 | /** |
||
91 | * @inheritdoc |
||
92 | */ |
||
93 | 2 | public function behaviors() |
|
101 | |||
102 | 1 | public function beforeSave($insert) |
|
109 | |||
110 | /** |
||
111 | * 产生序列号 |
||
112 | * @param string $prefix 序列号前缀 |
||
113 | * @return string |
||
114 | * @link http://goo.gl/TZYwZo 参考说明 |
||
115 | */ |
||
116 | 1 | public function createSN($prefix = '') |
|
120 | |||
121 | 1 | public static function getStatusList() |
|
137 | |||
138 | 1 | public static function getPaymentMethodList() |
|
146 | |||
147 | /** |
||
148 | * @return \yii\db\ActiveQuery |
||
149 | */ |
||
150 | public function getOrderPaymentRecord() |
||
154 | |||
155 | public function afterDelete() |
||
161 | } |
||
162 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.