| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?php
- namespace app\models;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * Class StoreMedia
- * @package app\models
- * @property integer $id
- * @property integer $store_id
- * @property integer $mini_id
- * @property string $task_id
- * @property string $auth_form
- * @property integer $task_status
- * @property integer $apply_status
- * @property string $task_message
- * @property string $provider
- * @property string $contact
- * @property string $auth_url
- * @property string $pic_url
- * @property integer $is_delete
- * @property string $created_at
- * @property string $updated_at
- * @property string $dispatch_time
- **/
- class StoreMiniAuth extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%store_mini_auth}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [["id", "store_id", "mini_id", 'task_status', 'apply_status', 'is_delete'], 'integer'],
- [['task_id', 'auth_form', 'task_message', 'provider', 'contact', 'auth_url', 'pic_url'], 'string'],
- [['created_at', 'updated_at', 'dispatch_time'], 'safe']
- ];
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => '',
- 'mini_id' => '',
- 'task_id' => '人脸核验任务id',
- 'auth_form' => 'icp表单',
- 'task_status' => '状态码,见各API返回码。当task_status为0, 6, 9, 12时有事件通知',
- 'apply_status' => '审核单状态,当apply_status变为2、3、4、5时会有事件通知',
- 'task_message' => '提示信息',
- 'provider' => '审核机构名称 当apply_status=2时有效',
- 'contact' => '审核机构联系方式 当apply_status=2时有效',
- 'auth_url' => '授权链接',
- 'is_delete' => '',
- 'created_at' => '',
- 'updated_at' => '',
- 'dispatch_time' => '派单时间戳(秒) 当apply_status=2时有效',
- 'pic_url' => '二维码存放地址'
- ];
- }
- /*
- * task_status 1:"任务超时,24小时内有效"; 2:"用户授权拒绝"; 3:"用户授权同意"; 4:"发起人脸流程"; 5:"人脸认证失败"; 6:"人脸认证成功";
- * 7:"人脸认证后,已经提交手机号码下发验证码"; 8:"手机验证失败"; 9:"手机验证成功"; 11:"创建认证审核单失败"; 12:"创建认证审核单成功"; 14:"验证失败";
- * 15:"等待支付";
- */
- /*
- * apply_status 2:"审核中"; 3:"打回重填"; 4:"认证通过"; 5:"认证最终失败"
- */
- }
|