美团外卖映射

团外卖请求的timestamp要求时间戳要精确到毫秒  否则会一直报时间戳过时。测试

注意:美团门店绑定不要频繁绑定:测试帐号只给了5次绑定的机会。this

$timestamp = $this->getMillisecond();
        $param = array(
            'developerId'=>$developerId,
            'callbackUrl'=>$callbackUrl,
            'businessId'=>$businessId,
            'timestamp'=>$timestamp,
            'charset'=>'UTF-8',
            'ePoiId' =>$ePoiId,
            'ePoiName'=>$ePoiName,
        );    public  function getMillisecond() {        list($t1, $t2) = explode(' ', microtime());        return (float)sprintf('%.0f',(floatval($t1)+floatval($t2))*1000);    }     
相关文章
相关标签/搜索