Commit 8b5763ec authored by hujun's avatar hujun

是否开业判断修改

parent 5b368411
......@@ -1801,11 +1801,11 @@ class OrderLogService
* @return bool|int
*/
public function updateBargainIsOpen($bargain_id, $type, $is_open) {
if (empty($bargain_id) && !in_array($type, [91,92])) {
if (empty($bargain_id) || !in_array($type, [91,92])) {
return false;
}
if ($is_open != 0 || $is_open != 1) {
if (!in_array($is_open, [0,1])) {
return false;
}
......
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 to comment