Commit 0d0f9e3a authored by adwisatya's avatar adwisatya
Browse files

1-9 beres

parent 78597edf
......@@ -119,6 +119,7 @@ public class Client extends Thread{
case "field":
cmdField(JSONtoString("token",cmd));
break;
/* 9 */
case "offer" :
cmdOffer(JSONtoString("token",cmd), Integer.parseInt(JSONtoString("offered_item",cmd)), Integer.parseInt(JSONtoString("n1",cmd)), Integer.parseInt(JSONtoString("demanded_item",cmd)), Integer.parseInt(JSONtoString("n2",cmd)));
break;
......
......@@ -443,7 +443,7 @@ public class Database {
statement.setInt(3,_n1);
statement.setInt(4,_demanded_item);
statement.setInt(5,_n2);
statement.setString(7,toMD5(_token + Integer.toString(temp))); // value of offer token
statement.setString(6,toMD5(_token + Integer.toString(temp))); // value of offer token
rs = statement.executeUpdate();
System.out.println(rs);
statement.close();
......
Supports Markdown
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