|
@@ -9,6 +9,7 @@ use app\index\model\Article as ArticleModel;
|
|
|
use app\index\model\Comment as CommentModel;
|
|
|
use app\index\model\Goods as GoodsModel;
|
|
|
use think\facade\Cache;
|
|
|
+use think\facade\Log;
|
|
|
use think\facade\Session;
|
|
|
use think\response\View;
|
|
|
|
|
@@ -21,6 +22,7 @@ class Index extends Controller
|
|
|
{
|
|
|
public function index()
|
|
|
{
|
|
|
+ Log::notice($this->request->ip());
|
|
|
//banner位
|
|
|
$newArrivalCache = Cache::get('index_newArrival');
|
|
|
$bestsellerCache = Cache::get('index_bestseller');
|
|
@@ -191,9 +193,21 @@ class Index extends Controller
|
|
|
|
|
|
public function goldTest($name)
|
|
|
{
|
|
|
+ $ip = $this->request->ip();
|
|
|
+ //$b = bcmod(1, 0);
|
|
|
+ Log::debug($ip);
|
|
|
+ Log::info('888');
|
|
|
+ Log::error('xxx');
|
|
|
+
|
|
|
+ Log::notice($ip);
|
|
|
+ return $this->renderSuccess([],'OK');
|
|
|
+
|
|
|
+
|
|
|
+ dd($ip);
|
|
|
+
|
|
|
$conf = config('paypal');
|
|
|
- dd($conf['sandbox'],$conf['live']);
|
|
|
- dd('this is '.$name);
|
|
|
+ dd($conf['sandbox'], $conf['live']);
|
|
|
+ dd('this is ' . $name);
|
|
|
$service = new OrderGetYundanService();
|
|
|
$r = $service->orderCreateYundans($this->storeId);
|
|
|
dd($r);
|