mark 3 anni fa
parent
commit
bc4c5d4c6f

+ 3 - 0
app/Http/Controllers/BaseController.php

@@ -17,6 +17,7 @@ use App\Http\Logic\Cron\CronLogic;
 use App\Http\Utils\BaseUtil;
 use App\Http\Utils\DianYing\DianYingUtil;
 use App\Http\Utils\HeiMaUtil;
+use App\Http\Utils\JingDong\JingDongUtil;
 use App\Http\Utils\Jutuike\JutuikeUtil;
 use App\Http\Utils\KenDeJi\KenDeJiUtil;
 use App\Http\Utils\McDonalds\McDonaldsUtil;
@@ -133,6 +134,8 @@ class BaseController extends Controller
 
     public function test()
     {
+        $res = JingDongUtil::getGoodsListByCategory(652,1);
+        dd($res);
         dd(TaobaoLianMengUtil::getActivityInfo(70362850341,"20150318020002597"));
         CronLogic::taobaoOrdersLogic();
         dd(1);

+ 3 - 2
app/Http/Logic/Cron/CronLogic.php

@@ -19,6 +19,7 @@ use App\Http\Utils\HeiMaUtil;
 use App\Http\Utils\Jutuike\JutuikeUtil;
 use App\Http\Utils\LoggerFactoryUtil;
 use App\Http\Utils\Meituan\MeituanLianmengUtil;
+use App\Http\Utils\Meituan\MeituanLianmengUtilV1;
 use App\Http\Utils\Pdd\DuoDuoKeUtil;
 use App\Http\Utils\WechatAccountUtil;
 use App\Models\CategoryModel;
@@ -48,14 +49,14 @@ class CronLogic extends BaseLogic
 //            "startTime"=>strtotime("2021-09-22 11:25:00"),
 //            "endTime"=>time(),
             "page"=>1,
-            "limit"=>30,
+            "limit"=>100,
             "queryTimeType"=>2,
         ];
 
         $instance = new LoggerFactoryUtil(CronLogic::class);
         $instance->info("获取订单数据开始");
         $bean = new OrderListParamBean($arr);
-        $res = MeituanLianmengUtil::orderList($bean);
+        $res = MeituanLianmengUtilV1::orderList($bean);
 //        dd($res);
         $instance->info("美团返回数据:".json_encode($res));
         $instance->info("订单数量:".$res["total"]);

+ 25 - 24
app/Http/Logic/Home/HomeLogic.php

@@ -13,6 +13,7 @@ use App\Http\Utils\BaseUtil;
 use App\Http\Utils\Jutuike\JutuikeUtil;
 use App\Http\Utils\LoggerFactoryUtil;
 use App\Http\Utils\Meituan\MeituanLianmengUtil;
+use App\Http\Utils\Meituan\MeituanLianmengUtilV1;
 use App\Http\Utils\Pdd\DuoDuoKeUtil;
 use App\Http\Utils\TaoBao\TaobaoLianMengUtil;
 use App\Models\CategoryModel;
@@ -184,30 +185,30 @@ class HomeLogic extends BaseLogic
 //                case 3://京东
 //
 //                    break;
-//                case 4://美团
-//                    switch ($act["category_name"]){
-//                        case "美团外卖":
-//                            $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_MEITUAN,$userId);
-//                            $linkUrl = MeituanLianmengUtil::getMeituanWaimaiUrl($userId,$platformSid,$act["activity_id"],MeiTuanLinkTypeEnum::H5);
-//                            break;
-//                        case "美团闪购":
-//                            $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_MEITUAN,$userId);
-//                            $linkUrl = MeituanLianmengUtil::getMeituanWaimaiUrl($userId,$platformSid,$act["activity_id"],MeiTuanLinkTypeEnum::H5);
-//                            break;
-//                        case "美团优选":
-//                            $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_MEITUAN,$userId);
-//                            $linkUrl = MeituanLianmengUtil::getMeituanWaimaiUrl($userId,$platformSid,$act["activity_id"],MeiTuanLinkTypeEnum::H5);
-//                            break;
-//                        case "美团酒店":
-//                            $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_MEITUAN,$userId);
-//                            $linkUrl = MeituanLianmengUtil::getMeituanWaimaiUrl($userId,$platformSid,$act["activity_id"],MeiTuanLinkTypeEnum::H5);
-//                            break;
-//                        default:
-//                            $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_JUTUIKE,$userId);
-//                            $linkUrl = JutuikeUtil::transferAct($platformSid,$act["activity_id"]);
-//                            break;
-//                    }
-//                    break;
+                case 4://美团
+                    switch ($act["category_name"]){
+                        case "美团外卖":
+                            $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_MEITUAN,$userId);
+                            $linkUrl = MeituanLianmengUtilV1::getMeituanWaimaiUrl($userId,$platformSid,$act["activity_id"],MeiTuanLinkTypeEnum::H5);
+                            break;
+                        case "美团闪购":
+                            $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_MEITUAN,$userId);
+                            $linkUrl = MeituanLianmengUtilV1::getMeituanWaimaiUrl($userId,$platformSid,$act["activity_id"],MeiTuanLinkTypeEnum::H5);
+                            break;
+                        case "美团优选":
+                            $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_MEITUAN,$userId);
+                            $linkUrl = MeituanLianmengUtilV1::getMeituanWaimaiUrl($userId,$platformSid,$act["activity_id"],MeiTuanLinkTypeEnum::H5);
+                            break;
+                        case "美团酒店":
+                            $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_MEITUAN,$userId);
+                            $linkUrl = MeituanLianmengUtilV1::getMeituanWaimaiUrl($userId,$platformSid,$act["activity_id"],MeiTuanLinkTypeEnum::H5);
+                            break;
+                        default:
+                            $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_JUTUIKE,$userId);
+                            $linkUrl = JutuikeUtil::transferAct($platformSid,$act["activity_id"]);
+                            break;
+                    }
+                    break;
 //                case 5://本平台
 
                     break;

+ 241 - 0
app/Http/Utils/JingDong/JingDongUtil.php

@@ -0,0 +1,241 @@
+<?php
+
+
+namespace App\Http\Utils\JingDong;
+
+
+use App\Exceptions\CommonException;
+use App\Http\Utils\BaseUtil;
+use App\Http\Utils\LoggerFactoryUtil;
+use Tool\ShanTaoTool\HttpCurl;
+
+class JingDongUtil extends BaseUtil
+{
+    /**
+     * 生成sign
+     * @param $params array 参数
+     * @return string
+     */
+    public static function generateSign($params)
+    {
+        $secret = config("utilJingDong")["appSecret"];
+        ksort($params);
+        $str = $secret; // $secret为分配的密钥
+        foreach ($params as $key => $value) {
+            $str .= $key . $value;
+        }
+        $str .= $secret;
+        $sign = md5($str);
+        $sign = strtoupper($sign);
+        return $sign;
+    }
+
+    /**
+     * @param $req  请求参数
+     * @param $method 请求接口
+     * @param $token
+     * @return mixed
+     * @throws CommonException
+     */
+    public static function jDRequestApi($req, $method, $token='')
+    {
+        $appKey = config("utilJingDong")["appKey"];
+        $domain = config("utilJingDong")["domain"];
+        $params = [
+            "method" => $method,
+            "app_key" => $appKey,
+            "timestamp" => date("Y-m-d H:i:s"),
+            "format" => "json",
+            "v" => "1.0",
+            "sign_method" => "md5",
+            "360buy_param_json" => count($req)==0?"{}":json_encode($req)
+        ];
+        if($token){
+            $params["access_token"] = $token;
+        }
+
+        $params["sign"] = self::generateSign($params);
+        $domain = $domain . "?" . http_build_query($params);
+        $res = HttpCurl::postCurl($domain);
+        $arr = explode(".",$method);
+        $nextKey = $arr[count($arr)-1]."Result";
+
+        $responseKey = str_replace(".","_",$method)."_responce";
+
+        $log = new LoggerFactoryUtil(JingDongUtil::class);
+        $log->info(json_encode(["params" => $params, "res" => $res]));
+        if(!isset($res[$responseKey])){
+            throw new CommonException(ErrorEnum::EXCEPTION_ERROR);
+        }
+        $res = $res[$responseKey][$nextKey];
+        $res = json_decode($res,true);
+
+        if ($res["code"] == 200) {
+            return $res;
+        }
+        dd($res);
+        throw new CommonException([500,$res["message"]]);
+    }
+
+    /**
+     * 获取分类
+     */
+    public static function getCategory()
+    {
+//        $params = [
+//            "req"=>[
+//                "parentId"=>0,
+//                "grade"=>0
+//            ]
+//        ];
+//
+//        return self::jDRequestApi($params,"jd.union.open.category.goods.get");
+        return [
+            [
+                "id"=>1,
+                "name"=>"好券商品"
+            ],
+            [
+                "id"=>2,
+                "name"=>"精选卖场"
+            ],
+            [
+                "id"=>10,
+                "name"=>"9.9包邮"
+            ],
+            [
+                "id"=>15,
+                "name"=>"京东配送"
+            ],
+            [
+                "id"=>32,
+                "name"=>"京东好物"
+            ],
+            [
+                "id"=>22,
+                "name"=>"实时热销榜"
+            ],
+            [
+                "id"=>33,
+                "name"=>"京东秒杀"
+            ],
+            [
+                "id"=>34,
+                "name"=>"拼购商品"
+            ],
+        ];
+    }
+
+    /**
+     * 根据商品分类获取商品列表
+     * @param $cateId
+     */
+    public static function getGoodsListByCategory($cateId,$page)
+    {
+        $params = [
+            "goodsReqDTO"=>[
+                "cid1"=>$cateId,
+                "pageIndex"=>$page
+            ]
+        ];
+        return self::jDRequestApi($params,"jd.union.open.goods.query");
+    }
+
+    /**
+     * 获取商品详情页
+     * @param $goodsId
+     */
+    public static function getGoodsDetail($goodsId)
+    {
+        $params = [
+            "goodsReqDTO"=>[
+                "skuIds"=>[$goodsId]
+            ]
+        ];
+        return self::jDRequestApi($params,"jd.union.open.goods.query");
+    }
+
+
+    /**
+     * 创建联盟推广位
+     */
+    public static function createdPid()
+    {
+        //目前默认创建平台的后续会根据用户的进行修改
+        $oauth = UserOauthModel::query()
+            ->where("api_user_id",0)
+            ->where("platform_type",PlatformTypeEnum::JINGDOND)
+            ->first();
+
+        $params = [
+            "positionReq"=>[
+                "unionId"=>$oauth["lianmeng_id"],
+                "key"=>$oauth["lianmeng_key"],
+                "unionType"=>3,
+                "type"=>4,
+                "spaceNameList"=>["pid"]
+            ]
+        ];
+        return self::jDRequestApi($params,"jd.union.open.position.create");
+    }
+
+    /**
+     * 根据商品ID进行转链
+     * @param $goodsId
+     */
+    public static function transferGoods($goodsId,$pid)
+    {
+        $params = [
+            "goodsReqDTO"=>[
+                "skuIds"=>[$goodsId]
+            ]
+        ];
+        $data = self::jDRequestApi($params,"jd.union.open.goods.query")["data"][0];
+
+        //目前默认创建平台的后续会根据用户的进行修改
+        $oauth = UserOauthModel::query()
+            ->where("api_user_id",0)
+            ->where("platform_type",PlatformTypeEnum::JINGDOND)
+            ->first();
+
+
+        $arr = [
+            "promotionCodeReq"=>[
+                "materialId"=>$data["materialUrl"],
+//                "subUnionId"=>"ceshi",
+                "positionId"=>$pid,
+                "unionId"=>$oauth["lianmeng_id"],
+                "chainType"=>3
+            ]
+        ];
+        return self::jDRequestApi($arr,"jd.union.open.promotion.byunionid.get");
+    }
+
+    /**
+     * 获取京东联盟订单列表
+     * @return mixed
+     * @throws CommonException
+     */
+    public static function getOrderList()
+    {
+        //目前默认创建平台的后续会根据用户的进行修改
+        $oauth = UserOauthModel::query()
+            ->where("api_user_id",0)
+            ->where("platform_type",PlatformTypeEnum::JINGDOND)
+            ->first();
+
+        $params = [
+            "orderReq"=>[
+                "pageIndex"=>1,
+                "pageSize"=>20,
+                "type"=>1,
+                "startTime"=>"2021-12-22 14:00:00",
+                "endTime"=>"2021-12-22 14:30:00",
+                "childUnionId"=>1001268394,
+//                "childUnionId"=>$oauth["lianmeng_id"],
+//                "key"=>"ece3b6ab1c8b87a7fa80247b92da4441abcd2d8e862e22e4d374ef1cfbd4fb0373cf264e3f54b391",
+            ]
+        ];
+        return self::jDRequestApi($params,"jd.union.open.order.row.query");
+    }
+}

+ 158 - 0
app/Http/Utils/Meituan/MeituanLianmengUtilV1.php

@@ -0,0 +1,158 @@
+<?php
+
+
+namespace App\Http\Utils\Meituan;
+
+
+use App\Exceptions\CommonException;
+use App\Http\Bean\Util\Meituan\OrderListParamBean;
+use App\Http\Enum\ErrorEnum;
+use App\Http\Utils\BaseUtil;
+use App\Http\Utils\LoggerFactoryUtil;
+use Tool\ShanTaoTool\HttpCurl;
+
+class MeituanLianmengUtilV1 extends BaseUtil
+{
+    /**
+     * 生成sign
+     * @param $params array 参数
+     * @return string
+     */
+    public static function generateSign($params)
+    {
+        $secret = env("MEITUAN_LIANMENG_SECRET");
+        unset($params["sign"]);
+        ksort($params);
+        $str = $secret; // $secret为分配的密钥
+        foreach($params as $key => $value) {
+            $str .= $key . $value;
+        }
+        $str .= $secret;
+        $sign = md5($str);
+        return $sign;
+    }
+
+    /**
+     * @param $actId int 活动id,可以在联盟活动列表中查看获取
+     * @param $sid string 推广位ID
+     * @param $linkType int 链接类型(1、h5链接2、deeplink(唤起)链接3、中间页唤起链接4、微信小程序唤起路径)
+     * @param $appkey   string appkey
+     * @param $secret   string appkey
+     * @return mixed
+     */
+    public static function generateLink($actId,$sid,$linkType)
+    {
+        $appkey = env("MEITUAN_LIANMENG_KEY");
+        $url = "https://openapi.meituan.com/api/generateLink";
+        $params = [
+            "actId"=>$actId,
+            "appkey"=>$appkey,
+            "sid"=>$sid,
+            "linkType"=>$linkType,
+            "sign"=>"",
+            "shortLink"=>1//0表示获取长链,1表示获取短链
+        ];
+
+        $sign = self::generateSign($params);
+        $params["sign"] = $sign;
+        $res = HttpCurl::getCurl($url,$params);
+        if($res["status"]!=0){
+            $instance = new LoggerFactoryUtil(MeituanLianmengUtilV1::class);
+            $instance->info("美团发挥结果:".json_encode($res));
+            throw new CommonException(ErrorEnum::ERROR_SYSTEM);
+        }
+        return $res["data"];
+    }
+
+    /**
+     * 获取订单列表接口
+     * @param OrderListParamBean $orderListParamBean
+     */
+    public static function orderList(OrderListParamBean $orderListParamBean)
+    {
+        $url = "https://openapi.meituan.com/api/orderList";
+        $params = [
+            "appkey"=>$orderListParamBean->getAppkey(),
+            "ts"=>time(),
+            "businessLine"=>$orderListParamBean->getType(),
+            "sign"=>"",
+            "startTime"=>$orderListParamBean->getStartTime(),
+            "endTime"=>$orderListParamBean->getEndTime(),
+            "page"=>$orderListParamBean->getPage(),
+            "limit"=>$orderListParamBean->getLimit(),
+            "queryTimeType"=>$orderListParamBean->getQueryTimeType()
+        ];
+
+        $sign = self::generateSign($params);
+        $params["sign"] = $sign;
+        $res = HttpCurl::getCurl($url,$params);
+        return $res;
+    }
+
+    /**
+     * 生成小程序二维码
+     * @param $sid string 推广为ID
+     * @param $actId int 活动ID
+     */
+    public static function miniCode($sid,$actId)
+    {
+        $appkey = env("MEITUAN_LIANMENG_KEY");
+        $url = "https://openapi.meituan.com/api/miniCode";
+        $params = [
+            "sid"=>$sid,
+            "actId"=>$actId,
+            "appKey"=>$appKey,
+            "sign"=>""
+        ];
+        $sign = self::generateSign($params);
+        $params["sign"] = $sign;
+        $res = HttpCurl::getCurl($url,$params);
+        return $res;
+    }
+
+    /**
+     * 根据订单编号获取单个订单
+     * @param $orderNumber string 订单编号
+     * @param $key string 媒体appKey
+     * @param $type string 订单类型
+     */
+    public static function queryOrderByOrderNumber($orderNumber,$type,$acId)
+    {
+        $appkey = env("MEITUAN_LIANMENG_KEY");
+        $url = "https://openapi.meituan.com/api/order";
+        $params = [
+            "appkey"=>$appkey,
+            "orderId"=>$orderNumber,
+            "full"=>1,
+            "businessLine"=>$type,
+            "sign"=>"",
+            "acId"=>$acId
+        ];
+
+        $sign = self::generateSign($params);
+        $params["sign"] = $sign;
+        $res = HttpCurl::getCurl($url,$params);
+        return $res;
+    }
+
+    /**
+     * 获取美团推广链接
+     * @param $userId string 用户ID
+     * @param $spreadId string 推广位
+     * @param $actId string 活动ID
+     * @param $linkType string 链接类型
+     */
+    public static function getMeituanWaimaiUrl($userId, $spreadId, $actId, $linkType)
+    {
+        $key = "meituanUrl:".$userId."linktype:".$linkType."actid:".$actId;
+        $val = self::getCacheFromRedis($key);
+        if($val){
+            return $val;
+        }
+        //不存在则从官方获取
+        $val = self::generateLink($actId,$spreadId,$linkType);
+        self::setRedisCache($key,$val,0);
+        return $val;
+    }
+
+}

+ 167 - 0
app/Http/Utils/WeiPinHui/WeiPinHuiUtil.php

@@ -0,0 +1,167 @@
+<?php
+
+
+namespace App\Http\Utils\WeiPinHui;
+
+
+use App\Http\Utils\BaseUtil;
+
+class WeiPinHuiUtil extends BaseUtil
+{
+    /**
+     * 生成sign
+     * @param $params array 参数
+     * @return string
+     */
+    public static function generateSign($params, $req)
+    {
+        $secret = config("utilWeiPinHui")["appSecret"];
+        ksort($params);
+        $str = "";
+        foreach ($params as $key => $value) {
+            $str .= $key . $value;
+        }
+        $str .= json_encode($req);
+        $sign = hash_hmac('md5', $str, $secret);
+        $sign = strtoupper($sign);
+        return $sign;
+    }
+
+    /**
+     * @param $req 请求参数
+     * @param $serviceName 服务名称
+     * @param $method 请求方法
+     * @param string $accessToken
+     * @return mixed
+     * @throws CommonException
+     */
+    public static function weiPinHuiRequestApi($req = [], $serviceName, $method, $accessToken = "")
+    {
+        $appKey = config("utilWeiPinHui")["appKey"];
+        $domain = config("utilWeiPinHui")["domain"];
+        $params = [
+            "service" => $serviceName,
+            "method" => $method,
+            "version" => "1.0.0",
+            "timestamp" => time(),
+            "format" => "json",
+            "appKey" => $appKey,
+            "accessToken" => $accessToken
+        ];
+        $params["sign"] = self::generateSign($params, $req);
+        $domain = $domain . "?" . http_build_query($params);
+        $res = HttpCurl::postCurl($domain, $req);
+        $log = new LoggerFactoryUtil(WeiPinHuiUtil::class);
+        $log->info(json_encode(["params" => $params, "res" => $res]));
+        if ($res && $res["returnCode"] == 0) {
+            return $res["result"];
+        }
+        throw new CommonException(ErrorEnum::EXCEPTION_ERROR);
+    }
+
+    /**
+     * 将商品链接转化为联盟链接
+     * @param $goodLink 商品链接
+     * @param $accessToken 授权密钥
+     */
+    public static function tranferVipLink($goodLink,$pid,$accessToken)
+    {
+        $params = [
+            "urlList"=>[$goodLink],
+            "requestId"=>time()."",
+            "chanTag"=>$pid
+        ];
+
+        return self::weiPinHuiRequestApi($params,"com.vip.adp.api.open.service.UnionUrlService","genByVIPUrlWithOauth",$accessToken);
+    }
+
+    /**
+     * 将商品ID转化为联盟链接
+     * @param $goodsId 商品ID
+     * @param $accessToken 授权密钥
+     * @return mixed
+     * @throws CommonException
+     */
+    public static function transferGoodsId($goodsId,$pid, $accessToken)
+    {
+        $params = [
+            "goodsIdList"=>[$goodsId],
+            "requestId"=>time()."",
+            "chanTag"=>$pid
+        ];
+        return self::weiPinHuiRequestApi($params,"com.vip.adp.api.open.service.UnionUrlService","genByGoodsIdWithOauth",$accessToken);
+    }
+
+    /**
+     * 获取联盟商品列表
+     * @param $params
+     * @param $acessToken
+     * @return mixed
+     * @throws CommonException
+     */
+    public static function getGoodsList($params, $accessToken)
+    {
+        return self::weiPinHuiRequestApi($params,"com.vip.adp.api.open.service.UnionGoodsService","goodsListWithOauth",$accessToken);
+    }
+
+    /**
+     * 获取联盟商品详情
+     * @param $params
+     * @param $acessToken
+     * @return mixed
+     * @throws CommonException
+     */
+    public static function getGoodsDetail($params, $accessToken)
+    {
+        return self::weiPinHuiRequestApi($params,"com.vip.adp.api.open.service.UnionGoodsService","getByGoodsIdsWithOauth",$accessToken);
+    }
+
+    /**
+     * 通过搜索获取联盟商品列表
+     * @param $params
+     * @param $acessToken
+     * @return mixed
+     * @throws CommonException
+     */
+    public static function getGoodsListBySearch($params, $accessToken)
+    {
+        return self::weiPinHuiRequestApi($params,"com.vip.adp.api.open.service.UnionGoodsService","queryWithOauth",$accessToken);
+    }
+
+    /**
+     * 获取一级类目
+     * @return mixed
+     * @throws CommonException
+     */
+    public static function getCategory($accessToken)
+    {
+        $params = [
+            "request"=>[
+                "parentId"=>0,
+                "grade"=>1,
+                "requestId"=>time().""
+            ]
+        ];
+        return self::weiPinHuiRequestApi($params,"com.vip.adp.api.open.service.UnionGoodsService","getCategorys",$accessToken);
+    }
+
+    /**
+     * 获取订单列表
+     * @param $params
+     * @param $accessToken
+     */
+    public static function getOrderList($params, $accessToken)
+    {
+        return self::weiPinHuiRequestApi($params,"com.vip.adp.api.open.service.UnionOrderService","orderListWithOauth",$accessToken);
+    }
+
+    /**
+     * 获取维权订单列表
+     * @param $params
+     * @param $accessToken
+     */
+    public static function getRefundOrderList($params, $accessToken)
+    {
+        return self::weiPinHuiRequestApi($params,"com.vip.adp.api.open.service.UnionOrderService","refundOrderListWithOauth",$accessToken);
+    }
+}

+ 6 - 0
config/utilJingDong.php

@@ -0,0 +1,6 @@
+<?php
+return [
+    "appKey"=>env("JD_APP_KEY","29e5c3dc19d54e3b9d73bab15c3c6368"),//淘宝客appKey
+    "appSecret"=>env("JD_APP_SECRET","f1508ea2b43b420eab1c1184e5f3d795"),//secretKey
+    "domain"=>env("JD_APP_DOMAIN","https://api.jd.com/routerjson"),//secretKey
+];

+ 7 - 0
config/utilWeiPinHui.php

@@ -0,0 +1,7 @@
+<?php
+return [
+    "appKey"=>env("WPH_APP_KEY","a7f96fc1"),//淘宝客appKey
+    "appSecret"=>env("WPH_APP_SECRET","BD6158E5B0625F73ADFBFC8138592E77"),//secretKey
+//    "domain"=>env("WPH_APP_DOMAIN","http://sandbox.vipapis.com"),//沙箱环境入口地址
+    "domain"=>env("WPH_APP_DOMAIN","https://vop.vipapis.com"),//正式环境入口地址
+];