where(['store_id' => self::$storeId])->exists()) { return $this->save($data) !== false; } $data['store_id'] = self::$storeId; return $this->save($data); } /** * @notes:新增 * @param $data * @return bool * @author: wanghousheng */ public function add($data): bool { $data['store_id'] = self::$storeId; return $this->save($data); } /** * 详情 * @param array $where * @return static|array|null */ public static function detail(array $where = []) { return self::get($where); } }