|
@@ -15,7 +15,7 @@ class WxContRepositories
|
|
|
* 添加
|
|
|
* @param [$uid,$feedback_type,$feedback_content]
|
|
|
*/
|
|
|
- public static function add($uid, $oid, $chat_content, $chat_image,$chat_audio_url, $chat_audio_length, $refer_id, $adoption_apply_id = null, $contact_apply_id = null, $shop_good_id = null, $used_good_id = null, $bureau_id = null, $voter_id = null)
|
|
|
+ public static function add($uid, $oid, $chat_content, $chat_image,$chat_audio_url, $chat_audio_length, $refer_id, $adoption_apply_id = null, $contact_apply_id = null, $shop_good_id = null, $used_good_id = null, $bureau_id = null, $voter_id = null, $ask_order_id = null)
|
|
|
{
|
|
|
$chatModel = new Model();
|
|
|
|
|
@@ -64,6 +64,10 @@ class WxContRepositories
|
|
|
$chatModel->expand_id = $voter_id;
|
|
|
}
|
|
|
|
|
|
+ if(!_empty_($ask_order_id)){
|
|
|
+ $chatModel->expand_type = 9;
|
|
|
+ $chatModel->expand_id = $ask_order_id;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
$r = $chatModel->save();
|
|
@@ -96,6 +100,9 @@ class WxContRepositories
|
|
|
}else if($chatModel->expand_type == 8){
|
|
|
$chat_content_ = '选票活动';
|
|
|
$chatModel->voter_id = $chatModel->expand_id;
|
|
|
+ }else if($chatModel->expand_type == 9){
|
|
|
+ $chat_content_ = '付费咨询';
|
|
|
+ $chatModel->ask_order_id = $chatModel->expand_id;
|
|
|
}else if($chatModel->expand_type == 101){
|
|
|
$chat_content_ = '笔记审核推送';
|
|
|
}else if($chatModel->expand_type == 102){
|