Commit de6fdfc9 authored by hujun's avatar hujun

客户成功邀请注册推送消息

parent 851b04ef
......@@ -2,6 +2,8 @@
namespace app\api\controller;
use app\api\untils\GeTuiUntils;
use app\model\AAgents;
use think\Request;
use app\api\extend\Basic;
use app\api\untils\MessageUntils;
......@@ -278,9 +280,15 @@ class Member extends Basic
}
}
}
$insert_data['referrer_id'] = $referrer_id;
$insert_data['referrer_source'] = $referrer_source;
}
$insert_data['referrer_id'] = $referrer_id;
$insert_data['referrer_source'] = $referrer_source;
$getui = new GeTuiUntils();
$agent_ = new AAgents();
$agent_data = $agent_->getAgentInfo('device_id',$referrer_id);
$content = '你有新客户【'.$user_nick.'-'.$phone.'】成功注册App';
$getui->public_push_message_for_one($referrer_id,$agent_data['device_id'],$content);
}
$insert_data['status'] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment