|
@@ -46,11 +46,16 @@ class CoflController extends Controller
|
|
|
return $app->oauth->redirect();
|
|
|
}
|
|
|
try{
|
|
|
- $bid = Hashids::decode($bid)[0];
|
|
|
+ if(is_numeric($bid) && $bid == 6500 ){
|
|
|
+ $params['bid'] = Hashids::encode($bid);
|
|
|
+ }else{
|
|
|
+ $bid = Hashids::decode($bid)[0];
|
|
|
+ }
|
|
|
}catch (Exception $e){
|
|
|
return redirect()->to($this->getLink());
|
|
|
}
|
|
|
- $crm = $request->get('crm');
|
|
|
+ $crm = $request->get('crm','book_'.$bid);
|
|
|
+ if(!$bid) return redirect()->to($this->getLink());
|
|
|
//获取用户
|
|
|
//$user = $this->getUsers($openid);
|
|
|
$test_param = $request->input('test',0);
|