|
@@ -25,9 +25,6 @@ class RanseConfigController extends CatchController
|
|
|
'miniprogram_id' => 'required|min:1',
|
|
|
]);
|
|
|
$uid = $this->getLoginUserId();
|
|
|
- if(!$uid) {
|
|
|
- CommonBusinessException::throwError(Errors::NO_OPERATE_PERMISSION);
|
|
|
- }
|
|
|
$now = date('Y-m-d H:i:s');
|
|
|
DB::table('ranse_config')
|
|
|
->where([
|
|
@@ -54,10 +51,7 @@ class RanseConfigController extends CatchController
|
|
|
* @return array
|
|
|
*/
|
|
|
public function getRanseDuration(Request $request) {
|
|
|
- $uid = $this->getOptimizerUid();
|
|
|
- if(!$uid) {
|
|
|
- CommonBusinessException::throwError(Errors::NO_OPERATE_PERMISSION);
|
|
|
- }
|
|
|
+ $uid = $this->getLoginUserId();
|
|
|
|
|
|
$config = DB::table('ranse_config')
|
|
|
->where([
|