Commit bf27be19 bf27be195ef01c3dcf75066d4a58a6ec09e4fdfa by lemon

*

1 parent 466035d7
...@@ -29,9 +29,9 @@ class CacheKeyTools ...@@ -29,9 +29,9 @@ class CacheKeyTools
29 /** 29 /**
30 * @return mixed 30 * @return mixed
31 */ 31 */
32 public static function billsConfirm($busi_id) 32 public static function billsConfirm($serial_no)
33 { 33 {
34 return str_replace('#busi_id#', $busi_id, config('cache.key')['bills_confirm']); 34 return str_replace('#serial_no#', $serial_no, config('cache.key')['bills_confirm']);
35 } 35 }
36 36
37 } 37 }
......
...@@ -110,7 +110,7 @@ class MusicianWithdrawService extends Service ...@@ -110,7 +110,7 @@ class MusicianWithdrawService extends Service
110 */ 110 */
111 public function billConfirm() 111 public function billConfirm()
112 { 112 {
113 if (RedisClient::instance('bills')->set(CacheKeyTools::billsConfirm($this->request->busi_id), true, 'EX', 3, 'NX')) { 113 if (RedisClient::instance('bills')->set(CacheKeyTools::billsConfirm($this->request->serial_no), true, 'EX', 3, 'NX')) {
114 114
115 $app = StakeholderIncomeSyncApp::query()->where(['serial_no'=>$this->request->serial_no, 'sync_status'=>0])->select(['id', 'subject_no', 'company_id', 'stakeholder_id', 'related_id'])->first(); 115 $app = StakeholderIncomeSyncApp::query()->where(['serial_no'=>$this->request->serial_no, 'sync_status'=>0])->select(['id', 'subject_no', 'company_id', 'stakeholder_id', 'related_id'])->first();
116 116
......
...@@ -111,7 +111,7 @@ return [ ...@@ -111,7 +111,7 @@ return [
111 'key'=> [ 111 'key'=> [
112 'bills_sync' => 'bills:sync', 112 'bills_sync' => 'bills:sync',
113 'channelname' => 'channelname', 113 'channelname' => 'channelname',
114 'bills_confirm' => 'busid:#busi_id#', 114 'bills_confirm' => 'serial:#serial_no#',
115 ] 115 ]
116 116
117 ]; 117 ];
......