|
@@ -30,6 +30,7 @@ use App\Models\TaobaoPidModel;
|
|
use App\Models\UserOrderCommissionModel;
|
|
use App\Models\UserOrderCommissionModel;
|
|
use App\Models\WechatAccountModel;
|
|
use App\Models\WechatAccountModel;
|
|
use EasyWeChat\Kernel\Messages\Image;
|
|
use EasyWeChat\Kernel\Messages\Image;
|
|
|
|
+use ETaobao\Factory;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Tool\ShanTaoTool\Bean\Pdd\Ddk\ResourceUrlGenParamBean;
|
|
use Tool\ShanTaoTool\Bean\Pdd\Ddk\ResourceUrlGenParamBean;
|
|
@@ -134,6 +135,24 @@ class BaseController extends Controller
|
|
|
|
|
|
public function test()
|
|
public function test()
|
|
{
|
|
{
|
|
|
|
+ $config = [
|
|
|
|
+ "appkey"=>"25324796",//淘宝客appKey
|
|
|
|
+ "secretKey"=>"a74d58d18912f7c49acac39fdb7b4af5",//secretKey
|
|
|
|
+ "format"=>"json",//返回的数据格式
|
|
|
|
+ "session"=>"",//授权接口(sc类的接口)需要带上
|
|
|
|
+ "sandbox"=>false,
|
|
|
|
+ ];
|
|
|
|
+ $app = Factory::tbk($config);
|
|
|
|
+
|
|
|
|
+ $params = [
|
|
|
|
+ "adzone_id"=>"70362850341",
|
|
|
|
+ "q"=>"空调"
|
|
|
|
+ ];
|
|
|
|
+ $res = $app->tpwd->httpPost("taobao.tbk.dg.material.optional",$params);
|
|
|
|
+ return $this->success($res);
|
|
|
|
+
|
|
|
|
+ $datas = JutuikeUtil::getActList();
|
|
|
|
+ dd($datas);
|
|
$res = JingDongUtil::getGoodsListByCategory(652,1);
|
|
$res = JingDongUtil::getGoodsListByCategory(652,1);
|
|
dd($res);
|
|
dd($res);
|
|
dd(TaobaoLianMengUtil::getActivityInfo(70362850341,"20150318020002597"));
|
|
dd(TaobaoLianMengUtil::getActivityInfo(70362850341,"20150318020002597"));
|