|
|
@@ -5,13 +5,13 @@ namespace app\controller\api\store\product;
|
|
5
|
5
|
use app\common\repositories\store\product\ProductRepository;
|
|
6
|
6
|
use app\common\repositories\user\UserThirdRepository;
|
|
7
|
7
|
use think\App;
|
|
8
|
|
-use crmeb\basic\BaseController;
|
|
|
8
|
+// use crmeb\basic\BaseController;
|
|
9
|
9
|
use think\Exception;
|
|
10
|
10
|
use think\exception\ValidateException;
|
|
11
|
11
|
use think\facade\Db;
|
|
12
|
12
|
use think\facade\Log;
|
|
13
|
13
|
|
|
14
|
|
-class Jd extends BaseController
|
|
|
14
|
+class Jd
|
|
15
|
15
|
{
|
|
16
|
16
|
public $appid = '';
|
|
17
|
17
|
public $key = '';
|
|
|
@@ -23,11 +23,15 @@ class Jd extends BaseController
|
|
23
|
23
|
public function __construct(App $app)
|
|
24
|
24
|
{
|
|
25
|
25
|
|
|
26
|
|
- parent::__construct($app);
|
|
27
|
|
- $this->appid = '4100076550';
|
|
28
|
|
- $this->key = '5ce3da55dc739b6e7d9021d59618c5faa3b4030f41c5699658c7ca30cfd19f09b4046d606d196f1d';
|
|
29
|
|
- $this->appKey = 'a2ad5078501e928b991cd8aaeb0446dc';
|
|
30
|
|
- $this->secretKey = 'fd8aab59e9b94d9e889cb22838c03f2a';
|
|
|
26
|
+ // parent::__construct($app);
|
|
|
27
|
+ $this->appid = '4101490811';
|
|
|
28
|
+ $this->key = 'a7c43c21f3e156d2fd41dfbe884b9f62592ceb03b9f199c0811c82e35be53c0580a2638a7af39e74';
|
|
|
29
|
+ $this->appKey = 'e99703d01cbb6a2e48a8a34f19af9d87';
|
|
|
30
|
+ $this->secretKey = 'cea7578d5a314ef88086daa4ee3a5b4d';
|
|
|
31
|
+ // $this->appid = '4100076550';
|
|
|
32
|
+ // $this->key = '5ce3da55dc739b6e7d9021d59618c5faa3b4030f41c5699658c7ca30cfd19f09b4046d606d196f1d';
|
|
|
33
|
+ // $this->appKey = 'a2ad5078501e928b991cd8aaeb0446dc';
|
|
|
34
|
+ // $this->secretKey = 'fd8aab59e9b94d9e889cb22838c03f2a';
|
|
31
|
35
|
$this->userThird = app()->make(UserThirdRepository::class);
|
|
32
|
36
|
$this->url = 'https://api.jd.com/routerjson';
|
|
33
|
37
|
}
|