Files
spacestation/common/models/receiver/Receiver_call_wechat_model.php
2025-12-05 11:39:26 +08:00

30 lines
1.0 KiB
PHP

<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Receiver_call_wechat_model extends HD_Model
{
private $table_name = 'lc_receiver_call_wechat';
// cfType 类型 1线索 2 客户
const CF_TYPE_CLUE = 1;
const CF_TYPE_CUSTOMERS = 2;
// cfPlatform 来源平台
const CF_PLATFORM_WX_APP = 'wxapp'; //小程序
const CF_PLATFORM_ADMIN = 'admin'; //sadmin后台
const finishTypeList = [0 => '通话未完成', 1 => '通话完成', 2 => '通话失败'];
const callTypeList = [0 => '呼入', 1 => '呼出'];
const hangupTypeList = [0 => '客户挂断', 1 => '坐席挂断'];
//状态 0 未拨打 1 已拨打
const STATUS_WAIT = 0;
const STATUS_FINISH = 1;
// 通话完成状态 0:通话未完成 1:通话完成 2:通话失败
const FINISH_STATUS_WAIT = 0;
const FINISH_STATUS_FINISH = 1;
const FINISH_STATUS_FAIL = 2;
public function __construct()
{
parent::__construct($this->table_name, 'default');
}
}