Commit d19f21c6 by 赵增煜

key

parent 0125075a
......@@ -103,7 +103,7 @@ public function drugLimit(Request $request)
$site_config = DB::table('admin_settings')->where('slug', 'site_config')->value('value');
$site_config = json_decode($site_config, true);
$limit_num = intval($site_config['prescription_limit_buy_7']);
$limit_type = intval($site_config['prescription_limit_buy_7_type']) > 0 ? 1 : 0; // 1为限购,0为不限购
$limit_type = intval($site_config['prescription_limit_buy_7']) > 0 ? 1 : 0; // 1为限购,0为不限购
$drug_id = $request->input('drug_id');
// 判断当前药品有没有设置7日内限购
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment