255], [['adapay_payment_id'], 'safe'], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'order_no' => '订单号', 'user_id' => '用户', 'pay_price' => '支付金额', 'send_price' => '赠送金额', 'pay_type' => '支付方式 1--微信支付', 'is_pay' => '是否支付 0--未支付 1--支付', 'pay_time' => '支付时间', 'transaction_id' => '微信单号', 'is_delete' => 'Is Delete', 'created_at' => '添加时间', 'type' => '类型 0当面付', 'order_id' => '订单id', 'is_use_platform_mch' => '供应链系统下单时是否使用平台商户号,1使用,0未使用', ]; } public function afterSave($insert, $changedAttributes) { parent::afterSave($insert, $changedAttributes); if (($insert && $this->is_pay == 1) || (isset($changedAttributes['is_pay']) && $this->is_pay == 1)) { \app\utils\Share\BonusPool::ShareHolderLevelJob($this->store_id, 0, $this->user_id); } } }