store_sns_setting.model.php 781 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * 店铺动态自动发布
  4. *
  5. *
  6. *
  7. *
  8. */
  9. defined('InShopNC') or exit('Access Invalid!');
  10. class store_sns_settingModel extends Model {
  11. public function __construct(){
  12. parent::__construct('store_sns_setting');
  13. }
  14. /**
  15. * 获取单条动态设置设置信息
  16. *
  17. * @param unknown $condition
  18. * @param string $field
  19. * @return array
  20. */
  21. public function getStoreSnsSettingInfo($condition, $field = '*') {
  22. return $this->field($field)->where($condition)->find();
  23. }
  24. /**
  25. * 保存店铺动态设置
  26. *
  27. * @param unknown $insert
  28. * @return boolean
  29. */
  30. public function saveStoreSnsSetting($insert) {
  31. return $this->insert($insert);
  32. }
  33. }