Commit b198d9d0 by shz

修改dao table变量

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