| xqd
@@ -28,20 +28,20 @@ class HomeController extends Controller
|
|
|
protected $app;
|
|
|
protected $setting;
|
|
|
|
|
|
- public function __construct()
|
|
|
- {
|
|
|
- $this->setting = SettingInfoModel::first();
|
|
|
-
|
|
|
- $config = [
|
|
|
- 'app_id' => $this->setting->app_id,
|
|
|
- 'secret' => $this->setting->app_secret,
|
|
|
-
|
|
|
- // 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名
|
|
|
- 'response_type' => 'array',
|
|
|
- ];
|
|
|
-
|
|
|
- $this->app = Factory::miniProgram($config);
|
|
|
- }
|
|
|
+// public function __construct()
|
|
|
+// {
|
|
|
+// $this->setting = SettingInfoModel::first();
|
|
|
+//
|
|
|
+// $config = [
|
|
|
+// 'app_id' => $this->setting->app_id,
|
|
|
+// 'secret' => $this->setting->app_secret,
|
|
|
+//
|
|
|
+// // 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名
|
|
|
+// 'response_type' => 'array',
|
|
|
+// ];
|
|
|
+//
|
|
|
+// $this->app = Factory::miniProgram($config);
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* @api {post} /api/home/login 登陆(login)
|