Example #1
0
    private function getDealWrongMsg($openid, $weixDealingProposal)
    {/*{{{*/
        $proposalId = $weixDealingProposal->proposalId; 
        $proposal = DAL::get()->find("Proposal", $proposalId);
        $patient = $proposal->patient;
        $xiangyingTitle = "您还没有处理完" . $patient->userName . "的问题";
        
        $weixintype = WeixUser::WEIXINTYPE_SPACE;
        $config = WeixApi::getWeixConfigs($weixintype);
        $AppId = $config['AppId'];
        $domain = $config['domain'];
        $Url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' . $AppId . '&redirect_uri=' . $domain. '/wx/auth4space?proposalId=' .$proposal->id . '&response_type=code&scope=snsapi_base&state=#wechat_redirect';   

        $str = "■ 病情不适合由您处理请回复数字 2
■ 需离开处理其它紧急事项请回复数字 3 ";
        $arr = array
            (
                array(
                    'Title' => $xiangyingTitle,
                    'Description' => $str,
                    'PicUrl' => '',
                    'Url' => $Url,   
                ),
            );   
        return WeixApi::xiangyingNewsMsgWithArr($openid, WeixUser::WEIXINTYPE_SPACE, $arr);
    }/*}}}*/