HelpData.php 927 Bytes
<?php

namespace LibModels\Wap\Home;

use Api\Yohobuy;
use Api\Sign;
/**
 * 帮助中心数据模型
 *
 */
class HelpData
{

    /*
     * 获取帮助列表(分类),缓存1h
     * clientType客户端
     */
    public static function serviceInfo()
    {
       //构建必传参数
        $param = Yohobuy::param();
        $param['method'] = 'app.help.li';
        $param['client_secret'] = Sign::getSign($param);
        
        return Yohobuy::post(Yohobuy::API_URL, $param, $param); 
    }
    
    public static function serviceDetail($code)
    {
        //获取帮助详情
        $param = Yohobuy::param();
        $param['method'] = 'app.help.detail';
        $param['code'] =  $code;     
        $param['return_type'] = 'html';
        $param['client_secret'] = Sign::getSign($param);
        return Yohobuy::post(Yohobuy::API_URL, $param,$param ); 
    }

    
}