| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use GuzzleHttp\Client;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- use app\modules\admin\models\wechat_mp\CardForm;
- use app\utils\IotCloudHelper;
- use yii\redis\Cache;
- /**
- * This is the model class for table "{{%account_log}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property integer $status
- * @property string $talent_appid
- * @property string $bind_time
- * @property string $talent_nickname
- * @property string $talent_head_img
- * @property string $related_finder_exportname_list
- * @property string $related_mp_biz_appid_list
- * @property string $created_at
- * @property string $updated_at
- */
- class PromoterTalent extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%promoter_talent}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['store_id','status'], 'integer'],
- [['talent_appid', 'bind_time', 'talent_nickname', 'talent_head_img', 'related_finder_exportname_list','related_mp_biz_appid_list'], 'string'],
- [['created_at', 'updated_at'], 'string'],
- ];
- }
- public function beforeSave($insert)
- {
- if (parent::beforeSave($insert)) {
- if ($this->isNewRecord) {
- $this->created_at = date('Y-m-d H:i:s');
- }else{
- $this->updated_at = date('Y-m-d H:i:s');
- }
- return true;
- }
- return false;
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- ];
- }
- }
|