Commit b198d9d0 by shz

修改dao table变量

显示真实评分
parent 31937177
...@@ -24,7 +24,7 @@ class dao ...@@ -24,7 +24,7 @@ class dao
public static function update_view_house($id) public static function update_view_house($id)
{ {
global $wpdb; global $wpdb;
$result = $wpdb->update('tospur_view_house_table', array( $result = $wpdb->update(tospur_view_house_table, array(
'handle' => 1, 'handle' => 1,
'handle_date' => current_time('Y-m-d H:i:s') 'handle_date' => current_time('Y-m-d H:i:s')
), array( ), array(
...@@ -36,7 +36,7 @@ class dao ...@@ -36,7 +36,7 @@ class dao
public static function update_view_house_consultant($house_id, $consultant_id) public static function update_view_house_consultant($house_id, $consultant_id)
{ {
global $wpdb; global $wpdb;
$result = $wpdb->update('tospur_view_house_table', array( $result = $wpdb->update(tospur_view_house_table, array(
'consultant_id' => $consultant_id 'consultant_id' => $consultant_id
), array( ), array(
'id' => $house_id 'id' => $house_id
......
...@@ -22,8 +22,7 @@ ...@@ -22,8 +22,7 @@
readonly: true readonly: true
}); });
var consultant_score = {{ consultant_score }}; var consultant_score = {{ consultant_score }};
var decimal = consultant_score % 0.5; score.rating('update', consultant_score);
score.rating('update', consultant_score - decimal);
}); });
</script> </script>
</head> </head>
......
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