64], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'order_id' => 'Order ID', 'out_biz_no' => 'Out Biz No', 'identity' => 'Identity', 'agreement_no' => 'Agreement No', 'amount' => 'Amount', 'created_at' => 'Created At', ]; } public static function getBookNo($no) { return self::PREFIX . $no; } public static function addOrder($data) { array_merge($data, [ 'created_at' => time(), ]); $model = new self; $model->load($data, ''); return $model->save(); } }