|
@@ -170,13 +170,14 @@ class operator
|
|
public static function reset($pay_sn)
|
|
public static function reset($pay_sn)
|
|
{
|
|
{
|
|
$mod_fcode = Model('goods_fcode');
|
|
$mod_fcode = Model('goods_fcode');
|
|
- $ret = $mod_fcode->where(['pay_sn' => $pay_sn,'fc_state' => 3])->update(['fc_state' => 0,
|
|
|
|
- 'usable_time' => 0,
|
|
|
|
- 'mobile' => '',
|
|
|
|
- 'session_id' => '',
|
|
|
|
- 'grab_state' => 0,
|
|
|
|
- 'grab_time' => 0,
|
|
|
|
- 'pay_sn' => 0]);
|
|
|
|
|
|
+ $ret = $mod_fcode->where(['pay_sn' => $pay_sn,'fc_state' => 3])
|
|
|
|
+ ->update(['fc_state' => 0,
|
|
|
|
+ 'usable_time' => 0,
|
|
|
|
+ 'mobile' => '',
|
|
|
|
+ 'session_id' => '',
|
|
|
|
+ 'grab_state' => 0,
|
|
|
|
+ 'grab_time' => 0,
|
|
|
|
+ 'pay_sn' => 0]);
|
|
$affect_rows = $mod_fcode->affected_rows();
|
|
$affect_rows = $mod_fcode->affected_rows();
|
|
|
|
|
|
if($ret != false && $affect_rows > 0) {
|
|
if($ret != false && $affect_rows > 0) {
|
|
@@ -190,7 +191,7 @@ class operator
|
|
{
|
|
{
|
|
$cond = [];
|
|
$cond = [];
|
|
$cond['goods_commonid'] = $this->mCommonID;
|
|
$cond['goods_commonid'] = $this->mCommonID;
|
|
- $cond['batch_code'] = $this->mBatchCode;
|
|
|
|
|
|
+ $cond['batch_code'] = $this->mBatchCode;
|
|
$cond['user_key'] = $fcode['user_key'];
|
|
$cond['user_key'] = $fcode['user_key'];
|
|
$cond['fc_id'] = $fcode['fc_id'];
|
|
$cond['fc_id'] = $fcode['fc_id'];
|
|
$cond['fc_state'] = $fcode['fc_state'];
|
|
$cond['fc_state'] = $fcode['fc_state'];
|