|
@@ -3,6 +3,8 @@
|
|
namespace App\Http\Controllers\QuickApp\Oauth;
|
|
namespace App\Http\Controllers\QuickApp\Oauth;
|
|
|
|
|
|
use App\Consts\SysConsts;
|
|
use App\Consts\SysConsts;
|
|
|
|
+use App\Modules\User\Models\QappPackage;
|
|
|
|
+use App\Modules\User\Services\QappPackageService;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Request;
|
|
use App\Http\Controllers\Controller;
|
|
use App\Http\Controllers\Controller;
|
|
use App\Modules\User\Services\QappUserService;
|
|
use App\Modules\User\Services\QappUserService;
|
|
@@ -54,12 +56,17 @@ class UsersController extends Controller
|
|
$imei = $request->input('imei', '');
|
|
$imei = $request->input('imei', '');
|
|
$mac = $request->input('mac', '');
|
|
$mac = $request->input('mac', '');
|
|
$device_info = $request->input('device_info', '');
|
|
$device_info = $request->input('device_info', '');
|
|
- if ($device_no) {
|
|
|
|
- $origin_package = $package;
|
|
|
|
- //FIXME 海天包传成浩瀚了,特殊处理下,这个名字就给海天用
|
|
|
|
- if($package =='com.beidao.kuaiying.haohan'){
|
|
|
|
- $package = 'com.beidao.kuaiying.haitian';
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ $origin_package = $package;
|
|
|
|
+ //FIXME 海天包传成浩瀚了,特殊处理下,这个名字就给海天用
|
|
|
|
+ if($package =='com.beidao.kuaiying.haohan'){
|
|
|
|
+ $package = 'com.beidao.kuaiying.haitian';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //获取渠道id
|
|
|
|
+ $channel_id = QappPackageService::getChannelId($package);
|
|
|
|
+ if ($device_no && $channel_id > 0) {
|
|
|
|
+
|
|
\Log::info('$package:'.$package.' $origin_package:'.$origin_package.' $send_order_id:'.$send_order_id);
|
|
\Log::info('$package:'.$package.' $origin_package:'.$origin_package.' $send_order_id:'.$send_order_id);
|
|
$data = (new QappUserService)->login(compact('package', 'send_order_id', 'device_no', 'androidid', 'mac', 'device_info', 'imei', 'codeVersion'));
|
|
$data = (new QappUserService)->login(compact('package', 'send_order_id', 'device_no', 'androidid', 'mac', 'device_info', 'imei', 'codeVersion'));
|
|
if($data){
|
|
if($data){
|
|
@@ -68,6 +75,7 @@ class UsersController extends Controller
|
|
return response()->error('PARAM_ERROR');
|
|
return response()->error('PARAM_ERROR');
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
+ \Log::info('$package:'.$package.' $send_order_id:'.$send_order_id);
|
|
return response()->error('PARAM_ERROR');
|
|
return response()->error('PARAM_ERROR');
|
|
}
|
|
}
|
|
}
|
|
}
|